Closed hamsterasu closed 3 years ago
@hamsterasu Could you please try if you can run realsenseviewer and start streaming with D435i and T265 successfully? Also what's your platform? And kernel version? Thanks!
it says "realsense-viewer: command not found" when i run realsense-viewer
My kernel version is 5.4.0-47-generic. Platform is Intel® Core™ i7-10875H CPU
@hamsterasu I reproduced the issue and found one solution. Could you please check if you have 99-realsense-libusb.rules under /etc/udev/rules.d/ ? If not, please copy https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/ before connect the cameras. After that you can connect the camera and execute the ros launch.
It works in my case after including the 99-realsense-libusb.rules in /etc/udev/rules.d/.
@hongtaowu67 Thanks for your feedback! Glad to hear this works for you.
@RealSenseSupport Your solution works for me too! Thanks! I am closing this issue
@RealSenseSupport I got the same problem when I was using docker. I also tried to solve it by your suggestion (i.e. including the 99-realsense-libusb.rules in /etc/udev/rules.d/.) but it did not work for me... Are there any solutions ??
I checked realsense-viewer did work and got RGB-D images, although there was error message. Finally, I updated the firmware of realsense to 5.12, I got same error.
01/10 17:41:38,038 ERROR [139670256056064] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS
01/10 17:41:38,039 ERROR [139670256056064] (fw-update-device.cpp:128) access failed for 8086:adb uid: 2-7-10
01/10 17:41:38,039 WARNING [139670256056064] (rs.cpp:304) null pointer passed for argument "device"
running command
$ roslaunch realsense2_camera rs_camera.launch
error message
[ INFO] [1601571623.360312063]: RealSense ROS v2.2.16
[ INFO] [1601571623.360333411]: Built with LibRealSense v2.37.0
[ INFO] [1601571623.360341901]: Running with LibRealSense v2.37.0
01/10 16:08:00,157 ERROR [140156020442880] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS
01/10 16:08:00,178 WARNING [140156054013696] (rs.cpp:304) null pointer passed for argument "device"
[ WARN] [1601568480.178749109]: Device 1/1 failed with exception: failed to set power state
[ERROR] [1601568480.178776222]: The requested device with is NOT found. Will Try again.
@hamsterasu I reproduced the issue and found one solution. Could you please check if you have 99-realsense-libusb.rules under /etc/udev/rules.d/ ? If not, please copy https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/ before connect the cameras. After that you can connect the camera and execute the ros launch.
solved my issue too thanks, but I wonder shouldn't such a file be default installed with realsense package
@hamsterasu I reproduced the issue and found one solution. Could you please check if you have 99-realsense-libusb.rules under /etc/udev/rules.d/ ? If not, please copy https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/ before connect the cameras. After that you can connect the camera and execute the ros launch.
solved my issue too thanks, but I wonder shouldn't such a file be default installed with realsense package
This solved my issue too. Seems to be some kind of bug.
@hamsterasu I reproduced the issue and found one solution. Could you please check if you have 99-realsense-libusb.rules under /etc/udev/rules.d/ ? If not, please copy https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/ before connect the cameras. After that you can connect the camera and execute the ros launch.
Thanks! Mine is solved too
@RealSenseSupport I got the same problem when I was using docker. I also tried to solve it by your suggestion (i.e. including the 99-realsense-libusb.rules in /etc/udev/rules.d/.) but it did not work for me... Are there any solutions ??
I checked realsense-viewer did work and got RGB-D images, although there was error message. Finally, I updated the firmware of realsense to 5.12, I got same error.
01/10 17:41:38,038 ERROR [139670256056064] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS 01/10 17:41:38,039 ERROR [139670256056064] (fw-update-device.cpp:128) access failed for 8086:adb uid: 2-7-10 01/10 17:41:38,039 WARNING [139670256056064] (rs.cpp:304) null pointer passed for argument "device"
running command
$ roslaunch realsense2_camera rs_camera.launch
error message
[ INFO] [1601571623.360312063]: RealSense ROS v2.2.16 [ INFO] [1601571623.360333411]: Built with LibRealSense v2.37.0 [ INFO] [1601571623.360341901]: Running with LibRealSense v2.37.0 01/10 16:08:00,157 ERROR [140156020442880] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS 01/10 16:08:00,178 WARNING [140156054013696] (rs.cpp:304) null pointer passed for argument "device" [ WARN] [1601568480.178749109]: Device 1/1 failed with exception: failed to set power state [ERROR] [1601568480.178776222]: The requested device with is NOT found. Will Try again.
Did you ever figure this one out?
In my case, when launching the container, using privileged option and -v "/dev:/dev" volume option solved this problem.
Like
docker run --gpus all -d \
--name container_name \
-v "/dev:/dev" \
--privileged \
--rm \
image \
tail -f /dev/null
I needed to add the 99-* file as well for realsense to work.
Using Ubuntu 18.04 with ROS melodic. Seems this issue has been going on for months .. update the apt package?
Hi, I'm facing the same error and adding 99-realsense-libusb.rules under /etc/udev/rules.d/ didn't work for me.
I can see uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 435
when I run dmesg
.
I'm working on ubuntu 18.04 and installed with apt-get install ros-melodic-realsense2-camera
. Also, Idk if it might be helpful, but I can't run rs-enumerate-devices
. Got command not found
.
Could you help me ? Thanks for time !
EDIT : Anyway, installing through the realsense distrib seems to install correct rules and make it works.
I needed to add the 99-* file as well for realsense to work.
Using Ubuntu 18.04 with ROS melodic. Seems this issue has been going on for months .. update the apt package?
Mine still fail to work after adding it... I am also using 18.04 with ROS melodic. Can you provide me the steps you take? Thanks!!
i had a same mistakes, i use rpi 4 4gb , t265 and kermel version = 5.13.0-1017-raspi , i just want to run rs-data-collect and its end like this realsense error calling rs2_create_device(info_list:0xaaaaef733d50, index:0): unable to open device interface
i ruun a couple command another rs- and its still the same traouble that unable to open device intervace . can some one help me pls what should i do
im from asia n my english was so bad im sory im a newbie with program
@MartyG-RealSense
Hi @arikus1 Your English is good, so don't worry. :)
The T265 Tracking Camera does not have built in depth sensing and so it would not work with some of the example programs. The link below has a list of the examples that can work with T265.
https://github.com/IntelRealSense/librealsense/blob/master/doc/t265.md#examples-and-tools
hi @MartyG-RealSense thank u for helping me , i wish u all the best broo , ur answer is a miracle for newbie like me 🙏
You are very welcome, @arikus1 - I am pleased that I could help :)
@hamsterasu I reproduced the issue and found one solution. Could you please check if you have 99-realsense-libusb.rules under /etc/udev/rules.d/ ? If not, please copy https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/ before connect the cameras. After that you can connect the camera and execute the ros launch.
Hi ,
I tried the above but still it failed.
I am using docker on VM (ubuntu 18.04) .
Hi @goyalvarun02 Please create a new case for your problem using the green New Issue button on the front page of this support forum. Thanks!
Realsense d435i is not detected on docker #10829
Created :-)
I copied https://github.com/IntelRealSense/librealsense/blob/master/config/99-realsense-libusb.rules to /etc/udev/rules.d/, however, I got another error:
13/03 23:18:38,690 WARNING [140163864020736] (messenger-libusb.cpp:66) bulk_transfer returned error, endpoint: 0x1, error: Resource temporarily unavailable, err. num: 11
Hi, I followed the instructions to install debian package of the ROS wrapper using
sudo apt-get install ros-melodic-realsense2-camera
. From what is said on the README, it says that by installing the debian package,So from my understanding of this, I do not have to install anything else, ie. librealsense2.
However, when I run
roslaunch realsense2 rs_camera.launch
while D435i is connected, i get this error:When I run dmesg, i see this:
When I run
roslaunch realsense2_camera rs_t265.launch
for t265 camera, i also get an error:I have attached the full console messages for your viewing.
Full console messages: d435i_dmesg.txt d435i_error.txt t265_dmesg.txt t265_roslaunch.txt