Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROS1 WSL Ubuntu 20.04] Failed to open usb interface #3244

Open
Elektron97 opened this issue Nov 6, 2024 · 3 comments
Open

[ROS1 WSL Ubuntu 20.04] Failed to open usb interface #3244

Elektron97 opened this issue Nov 6, 2024 · 3 comments
Labels

Comments

@Elektron97
Copy link

Elektron97 commented Nov 6, 2024

Required Info
Camera Model D435i
Firmware Version 5.16.0.1
Operating System & Version Ubuntu 20.04 (WSL)
Platform Laptop (WSL)
ROS Distro Noetic

In WSL2 I tried to launch:

roslaunch realsense2_camera rs_camera.launch

and I obtained this error:

[ INFO] [1730887040.305924387]:
 06/11 10:57:20,309 ERROR [140031503103744] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS
[ WARN] [1730887040.314327192]: Device 1/1 failed with exception: failed to set power state
[ERROR] [1730887040.314409240]: The requested device with  is NOT found. Will Try again.
 06/11 10:57:20,312 ERROR [140031734470400] (sensor.cpp:572) acquire_power failed: failed to set power state
 06/11 10:57:20,314 WARNING [140031734470400] (rs.cpp:310) null pointer passed for argument "device"

For the installation, I typed:

sudo apt-get install ros-noetic-realsense2-camera

I saw online that a file 99-realsense-libusb.rules is required, so I pasted it from here as suggested in this issue for Ubuntu 18.04. Unfortunately, it didn't work. Are there some different solutions for Ubuntu 20.04?

@MartyG-RealSense
Copy link
Collaborator

Hi @Elektron97 I would not recommend using WSL2 with RealSense if possible. It can be problematic to get it to work with librealsense, and getting it working with the RealSense ROS wrapper can be even more of a challenge.

In the past Microsoft have recommended using Windows 11 with WSL2 rather than Windows 10, as mentioned at #2481 (comment) - are you using Windows 10 or 11, please?

@Elektron97
Copy link
Author

HI @MartyG-RealSense , thank you for the answer. I'm currently using Windows 11.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 7, 2024

I note that you are using ROS1 Noetic, which suggests that you have version 2.50.0 of the librealsense SDK installed and the 2.3.2 version of the RealSense ROS1 wrapper installed as you used the installation command sudo apt-get install ros-noetic-realsense2-camera

If you are using librealsense 2.50.0, the recommended camera firmware driver version to use is 5.13.0.50 instead of 5.16.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants