ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

libuvc launch get permission denied opening usb error

asked 2015-10-26 07:36:25 -0600

flankechen gravatar image

updated 2015-10-26 08:22:19 -0600

gvdhoorn gravatar image

Hi all, new bee to ROS, I am following libucv, trying to run my webcam and publish to /camera/image_raw topic. Catkin_make is ok. but when I launch. I got permission denied opening errors like:

 * /camera/mycam/auto_exposure: 3
 * /camera/mycam/auto_white_balance: False
 * /camera/mycam/camera_info_url: file:///tmp/cam.yaml
 * /camera/mycam/frame_rate: 15
 * /camera/mycam/height: 480
 * /camera/mycam/index: 1
 * /camera/mycam/product: 0x0
 * /camera/mycam/serial: 
 * /camera/mycam/timestamp_method: start
 * /camera/mycam/vendor: 0x0
 * /camera/mycam/video_mode: uncompressed
 * /camera/mycam/width: 640
 * /rosdistro: indigo
 * /rosversion: 1.11.13

    mycam (libuvc_camera/camera_node)


core service [/rosout] found
process[camera/mycam-1]: started with pid [12166]
**[ERROR] [1445862646.193876279]: Permission denied opening /dev/bus/usb/001/002**
[camera/mycam-1] process has died [pid 12166, exit code 255, cmd /home/visioner/libuvc_ws/devel/lib/libuvc_camera/camera_node __name:=mycam __log:=/home/visioner/.ros/log/f0455380-7b93-11e5-a62a-e4f89ca8e3f5/camera-mycam-1.log].
log file: /home/visioner/.ros/log/f0455380-7b93-11e5-a62a-e4f89ca8e3f5/camera-mycam-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...

any ideas about this? I am pretty sure my cameras are OK, I could find in ls /dev/video* , I even write a simple opencv program showing that I can get my camera run.

Any ideas about this? Thanks!

edit retag flag offensive close merge delete


What permissions does ls -l /dev/video* show?

joq gravatar image joq  ( 2015-10-26 08:57:56 -0600 )edit

@joq, the permission is: crwxrwxrwx+

flankechen gravatar image flankechen  ( 2015-10-27 01:05:29 -0600 )edit

How about /dev/bus/usb/001/*?

joq gravatar image joq  ( 2015-10-27 12:32:45 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-08 15:46:24 -0600


Unless you're logged in a root then you will not have permission to write to the /dev/bus/usb/001/002 device.

I've just worked around this and it's a bit messy and you have to do it every time you connect the camera. Change your path to /dev/bus/usb/001/ and type "sudo chown <your username=""> 002"

This will give your user the permissions to access this device.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-10-26 07:36:25 -0600

Seen: 2,966 times

Last updated: Dec 08 '15