I'm working with an Astra Pro Plus and several Intel RealSense cameras, and I kept getting the Can't open /dev/bus/usb/ error. The issue was because uvc_camera_driver.cpp was trying to open one of the RealSense cameras, even when I specified the serial_number, the uvc_vendor_id, and the uvc_product_id in a roslaunch file.
This is because the two ID arguments were being ignored. UVCCameraDriver in src/uvc_camera_driver.cpp was trying to read them as ints, which failed since ROS1's yaml parser reads hexadecimal numbers as strings. This is why lines 104 and 105 of src/uvc_camera_driver.cpp need to be changed to:
Newer versions of the code in uvc_camera_driver have re-created this issue by removing the effects of this commit.
It must be re-implemented in the newest code.
I'm working with an Astra Pro Plus and several Intel RealSense cameras, and I kept getting the
Can't open /dev/bus/usb/
error. The issue was because uvc_camera_driver.cpp was trying to open one of the RealSense cameras, even when I specified theserial_number
, theuvc_vendor_id
, and theuvc_product_id
in a roslaunch file.This is because the two ID arguments were being ignored. UVCCameraDriver in src/uvc_camera_driver.cpp was trying to read them as ints, which failed since ROS1's yaml parser reads hexadecimal numbers as strings. This is why lines 104 and 105 of src/uvc_camera_driver.cpp need to be changed to: