orbbec/ros_astra_camera

RGB Camera is not working

Opened this issue · 1 comments

Whenever I run the command
$ roslaunch astra_camera astra_pro.launch
I found this error permission denied
Screenshot from 2023-02-13 02-42-05

The problem is that /dev/bus/usb/001/005 is my integrated camera on my laptop not the Astra_pro's one as shown when running $ lsusb
Screenshot from 2023-02-13 02-53-35
Although I have changed the id of the product and vendor in the astra_pro.launch file, still the same problem.

For Reference
Screenshot from 2023-02-13 03-01-19

When running $ rviz
depth and ir are working fine but the color image is not working
Screenshot from 2023-02-13 03-05-12

When i run $ sudo chmod 666 or 777 /dev/bus/usb/001/005 and then opening rviz, the integrated camera is working not the astra's one.

spok7 commented

Change lines 104 and 105 of src/uvc_camera_driver.cpp to:

  config_.vendor_id = std::stoi(nh_private_.param<std::string>("uvc_vendor_id", "0x0"), 0, 16);
  config_.product_id = std::stoi(nh_private_.param<std::string>("uvc_product_id", "0x0"), 0, 16);

Your product and vendor IDs should work then, and you should be able to see them in the uvc config line from your first screenshot. The current implementation defaults to the first available camera since it can't read the ROS arguments properly.