Items with no label
3335 Discussions

no realsense device found: realsense D415 camera

IYada
Beginner
8,503 Views

Hi,

I recently brought a realsense D415 camera. I am using ubuntu 14.04 and installed ros-wrapper and realsense SDK from https://github.com/intel-ros/realsense/releases Releases · intel-ros/realsense · GitHub. All the installation works ok but when I launch the rs_camera.launch file I get error

[ERROR] [1523460413.786180365]: No RealSense devices were found! Terminating RealSense Node...

There is no light in the camera when I plug it in with the usb3.0 cable that came with the camera. the output of lsusb is:

indrajeet@indrajeet:~$ lsusb

Bus 002 Device 002: ID 8086:0a66 Intel Corp.

Bus 002 Device 007: ID 8086:0ad3 Intel Corp.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 003: ID 0cf3:e360 Atheros Communications, Inc.

Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller

Bus 001 Device 019: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

the kernel version

indrajeet@indrajeet:~$ uname -a

Linux indrajeet 4.4.0-119-generic # 143~14.04.1-Ubuntu SMP Mon Apr 2 18:04:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Please let me know what I can do to solve this problem.

Thanks,

Indrajeet

0 Kudos
23 Replies
MartyG
Honored Contributor III
3,364 Views

From the last line of your log, I believe you are using kernel version 4.4. on Ubuntu 14.04 LTS. So you meet the absolute minimum Linux OS requirements for RealSense SDK 2.0. It sounds more like an issue with the USB.

I note though that the release notes for the ROS wrapper seem to recommend a specific version of SDK 2.0 for use with each version of the ROS wrapper. For example, the most recent wrapper, 2.0.3, recommends use with SDK 2.0 version 2.10.2 specifically. Which SDK 2.0 version are you using please?

0 Kudos
IYada
Beginner
3,364 Views

Thanks MartyG for your reply. I am using version 2.10.2. I also suspect its an issue with USB. is there a way to check if it is indeed a problem with USB. Outputs of some commands I found over internet to see if USB3.0 is working fine is:

indrajeet@indrajeet:~$ lspci | grep USB

00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)

indrajeet@indrajeet:~$ lsusb -t | grep xhci

/: Bus 02.Port 1: Dev 1, class="root_hub", Driver=xhci_hcd/6p, 5000M

/: Bus 01.Port 1: Dev 1, class="root_hub", Driver=xhci_hcd/12p, 480M

indrajeet@indrajeet:~$ lsusb

Bus 002 Device 003: ID 8086:0a66 Intel Corp.

Bus 002 Device 002: ID 8086:0ad3 Intel Corp.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 004: ID 0cf3:e360 Atheros Communications, Inc.

Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller

Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Will it be straightforward to reinstall everything with a previous version of ros wrapper+SDK. While installing this version I had to upgrade my cmake and gcc versions and had to rebuild the other ros packages installed in my laptop. I am now going to check with ubuntu 16.04 and see if the camera works.

Indrajeet

0 Kudos
idata
Employee
3,364 Views

Hello indsy,

 

 

Have you connected the camera to a different USB 3.0 port? Or to a diferent computer with Windows 10?

 

 

Connecting the Camera to a Windows 10 computer is very important for the camera to have a firmware update.

 

 

Are you using a USB 3.0 hub?

 

 

Best Regards,

 

Juan N.
0 Kudos
IYada
Beginner
3,364 Views

Hi I did not connect the camera to windows, I will try now. I am using USB3.0 and tried two ports but it didnot work.

0 Kudos
MartyG
Honored Contributor III
3,364 Views

When you use the camera on Windows, please open the RealSense Viewer program and see if the camera is detected, and if it is detected, what name the camera has. If there is a USB problem, I would expect the camera's name to be shown as 'Intel RealSense USB2'.

0 Kudos
IYada
Beginner
3,364 Views

@MartyG: I could connect the camera to a USB3.0 port on a windows 10 machine, install latest firmware and it works fine (stereo +RGB both gives expected output) when I view from Realsense viewer. Its name is "Intel Realsense D415", doesn't have USB2 or USB3 attached to it.

0 Kudos
MartyG
Honored Contributor III
3,364 Views

If it says '"Intel Realsense D415' then it means that the camera is working correctly in USB 3.0 mode, as that is the correct name for the D415 camera in the RealSense Viewer if it is working properly.

0 Kudos
IYada
Beginner
3,364 Views

Hi MartyG,

Thanks for your help. I tried few more things since morning.

1. reinstalled latest ros wrapper 2.0 and SDK v2.10.2 on my ubuntu 14.04 machine but its the same thing again. I noticed command "./scripts/patch-realsense-ubuntu-xenial.sh0" fails and if I run modprobe I get this:

indrajeet@indrajeet:~$ sudo modprobe uvcvideo

modprobe: ERROR: could not insert 'uvcvideo': Required key not available

2. same machine has ubuntu 16.04 installed so I installed the same wrapper and SDK there and strangely it works. However, when I launch rs_camera.launch I get few warnings:

[ INFO] [1523477604.476116251]: infra1 stream is enabled - width: 640, height: 480, fps: 30

[ INFO] [1523477604.476734525]: infra2 stream is enabled - width: 640, height: 480, fps: 30

11/04 16:13:24,478 WARNING [140608427751296] (backend-v4l2.cpp:1098) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!

11/04 16:13:24,479 WARNING [140608427751296] (sensor.cpp:313) Unregistered Media formats : [ RW16 ]; Supported: [ ]

[ INFO] [1523477604.487809220]: color stream is enabled - width: 640, height: 480, fps: 30

[ INFO] [1523477604.503752611]: publishStaticTransforms...

[ INFO] [1523477604.507152058]: RealSense Node Is Up!

11/04 16:13:24,696 WARNING [140607660492544] (ds5-timestamp.cpp:64) UVC metadata payloads not available. Please refer to installation chapter for details.

[ WARN] [1523477604.699261566]: Frame metadata isn't available! (frame_timestamp_domain = RS2_TIMESTAMP_DOMAIN_SYSTEM_TIME)

11/04 16:13:24,738 WARNING [140607649625856] (ds5-timestamp.cpp:64) UVC metadata payloads not available. Please refer to installation chapter for details.

11/04 16:13:24,939 ERROR [140608427751296] (types.h:178) xioctl(VIDIOC_S_CTRL) failed Last Error: Numerical result out of range

[ WARN] [1523477604.943568594]: Reconfigure callback failed with exception xioctl(VIDIOC_S_CTRL) failed Last Error: Numerical result out of range:

I can launch all the other files in the launch folder with few warnings except rs_rgbd.launch. rgbd.launch gives the following error

full_path = _get_executable_path(rp.get_path(args[0]), path)

File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 203, in get_path

raise ResourceNotFound(name, ros_paths=self._ros_paths)

ResourceNotFound: rgbd_launch

ROS path [0]=/opt/ros/kinetic/share/ros

ROS path [1]=/home/indrajeet/catkin_ws/src

ROS path [2]=/opt/ros/kinetic/share

So apart from these issues the camera is working with windows/ubuntu16.04 but not with ubuntu14.04, is there something else I can try? I would be happy to use 16.04 but some other ros packages I use work great on 14.04 so trying to make it work there.

Indrajeet

0 Kudos
MartyG
Honored Contributor III
3,364 Views

There was a case last month where a D415 user could launch ROS in default mode but not RGBD mode. Intel gave gave this advice:

In the original Librealsense 1, running the update patch process immediately after the SDK's installation was also recommended for Ubuntu 14.04.

0 Kudos
IYada
Beginner
3,364 Views

I am running the command as intel recommended in their reply. "roslaunch realsense2_camera rs_rgbd.launch " . I did not understand your second line. Do you mean running "./script/patch-realsense-ubuntu-xenial.sh" after final recompilation and installation of binaries?

 

Indrajeet

0 Kudos
IYada
Beginner
3,364 Views

Got rs_rgbd.launch working in ubuntu16.04. All I had to do was to run sudo apt-get install ros-kinetic-rgbd-launch. was there in one of the issues on github.

0 Kudos
MartyG
Honored Contributor III
3,364 Views

The update process I was referring to was sudo apt get update.

For 14.04 instructions, see the 'Building Librealsense2 SDK' section on this page:

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md librealsense/installation.md at master · IntelRealSense/librealsense · GitHub

0 Kudos
IYada
Beginner
3,364 Views

I run that while building the sdk for the first time since I had to upgrade gcc. I am very sure I did not do that second time. Will take a break and then try it again.

Thanks

Indrajeet

0 Kudos
MartyG
Honored Contributor III
3,364 Views

A break is a very good idea. Coming back to a problem with a fresh perspective and some food / drink inside you works wonders. Good luck and let us know how you get on!

0 Kudos
IYada
Beginner
3,364 Views

Still no luck. The command "./script/patch-realsense-ubuntu=xenial.sh" fails, may be this is the reason. I tried installing everything again but its all the same. I am not sure but probably the kernel I have is the problem. Only relief is that camera is working with ubuntu16.04.

Indrajeet

0 Kudos
MartyG
Honored Contributor III
3,364 Views

I noticed that in your patch instruction, you used ubuntu = xenial.sh, when the correct instruction is

./scripts/patch-realsense-ubuntu-xenial.sh

Was the = just a typing mistake in your message?

0 Kudos
IYada
Beginner
3,364 Views

sorry it was a typo here. I was using correct instruction all the time while installing sdk.

0 Kudos
MartyG
Honored Contributor III
3,364 Views

After doing the xenial update instruction, have you done the two installation stwps after that?

1. Update OS Boot and reboot to enforce the correct kernel selection with sudo update-grub && sudo reboot

2. Interrupt the boot process at Grub2 Boot Menu -> "Advanced Options for Ubuntu" and select the kernel version installed in the previous step. Press and hold SHIFT if the Boot menu is not presented.

EDIT: Oh, so you are failing at the Xenial instruction, so can't get that far?

0 Kudos
IYada
Beginner
3,364 Views

yes I did both of these. The kernel is saw in advanced options and "uname -r" is the same.

0 Kudos
MartyG
Honored Contributor III
2,832 Views

Have you done the set of steps directly before the Xenial update instruction?

***********

Video4Linux backend preparation:

Ensure no Intel RealSense cameras are plugged in.

Install openssl package required for kernel module build:

sudo apt-get install libssl-dev

Install udev rules located in librealsense source directory:

sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/

sudo udevadm control --reload-rules && udevadm trigger

0 Kudos
Reply