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

uvc_camera initialization problem

asked 2012-07-11 10:11:06 -0600

nanite gravatar image

camera_node fails to launch with the following errors at terminal :

core service [/rosout] found Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored process[uvc_camera-1]: started with pid [2733] opening /dev/video0 terminate called after throwing an instance of 'std::runtime_error' what(): couldn't open /dev/video0 [uvc_camera-1] process has died [pid 2733, exit code -6, cmd /opt/ros/fuerte/stacks/camera_umd/uvc_camera/bin/camera_node __name:=uvc_camera __log:=/home/sudhanshu/.ros/log/7fb92ae8-cb7d-11e1-8f5e-080027007ada/uvc_camera-1.log]. log file: /home/sudhanshu/.ros/log/7fb92ae8-cb7d-11e1-8f5e-080027007ada/uvc_camera-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done

tired to run it from root, but it didn't help out. I am trying to stream images from one PC to another PC..over my LAN. It works sometimes without flaw .. other times it doesn't initialize. Would appreciate some guidance on this. Thanks !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-07-20 13:41:48 -0600

ggamble22 gravatar image

try running ls -l /dev/video0 which should produce this:

crw-rw---- 1 root video 81, 0 Jul 20 19:26 /dev/video0

if the first part of the message looks this:

crw-rw----

like the above then you don't have the correct permissions so type this:

sudo chmod a+rw /dev/video0

the final message should look like this:

crw-rw-rw- 1 root video 81, 0 Jul 20 19:26 /dev/video0
edit flag offensive delete link more

Comments

hi, I encountered the same problem, i followed your instruction, it worked, but the camera driver died soon, and i looked up the permissions, it turned out likes this "crw-rw----" again, It bothers me for a long time, do you know why?

Kevin_chow gravatar image Kevin_chow  ( 2018-03-22 04:12:43 -0600 )edit

Question Tools

Stats

Asked: 2012-07-11 10:11:06 -0600

Seen: 2,873 times

Last updated: Jul 20 '12