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

RGB Camera is not working #177

Open
AbdulrahmanAlsumeri opened this issue Feb 12, 2023 · 1 comment
Open

RGB Camera is not working #177

AbdulrahmanAlsumeri opened this issue Feb 12, 2023 · 1 comment

Comments

@AbdulrahmanAlsumeri
Copy link

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
Copy link

spok7 commented Jul 11, 2023

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.

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

No branches or pull requests

2 participants