ros-drivers / libuvc_ros

http://www.ros.org/wiki/libuvc_ros
82 stars 95 forks source link

Permission denied issues #11

Open LucidOne opened 10 years ago

LucidOne commented 10 years ago

Permission denied error should print which /dev/bus/usb/ device

Need example udev rule

SUBSYSTEM=="usb", ATTRS{idVendor}=="f00f", ATTRS{idProduct}=="f0f0", GROUP="video"

ktossell commented 10 years ago

For the first part of this issue, I've added some new error messages in https://github.com/ktossell/libuvc_ros/commit/30b3cfd1d20fef41f3a1077d3be3bcd3bb383d77. This requires the latest git version of libuvc.

If I got this right, it'll say:

[ERROR] Permission denied opening /dev/bus/usb/123/456
[ERROR] Can't open /dev/bus/usb/123/456: I/O error (-1)