Failed to connect the usb camera

asked 2016-02-26 03:29:25 -0500

Vivian Liu gravatar image

Hi everyone, I am having problem about using my Andoer USB 2.0 12 Megapixel HD Camera Web Cam. Once I plugged in the webcam, I tried the following:

sudo apt-get install ros-indigo-usb-cam

rosrun usb_cam usb_cam_node

with a terminal running the master. I got the following error:

[ INFO] [1456506319.466005157]: using default calibration URL
[ INFO] [1456506319.466141992]: camera calibration URL: file:///home/ally/.ros/camera_info/head_camera.yaml
[ INFO] [1456506319.466318445]: Unable to open camera calibration file [/home/ally/.ros/camera_info/head_camera.yaml]
[ WARN] [1456506319.466353581]: Camera calibration file /home/ally/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1456506319.466388999]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (mjpeg) at 30 FPS
[ WARN] [1456506319.517065779]: unknown control 'white_balance_temperature_auto'

[ WARN] [1456506319.526420721]: unknown control 'focus_auto'

[ERROR] [1456506324.536249248]: select timeout

When I type:

ls -ltr /dev/video*

The output is:

crwxrwxrwx+ 1 root video 81, 0 Feb 26 16:39 /dev/video0

Please help. Thanks!

edit retag flag offensive close merge delete

Comments

Did you try the libuvc_camera package?

BennyRe gravatar image BennyRe  ( 2016-02-26 09:40:12 -0500 )edit

Have you figured out how to fix the problem using the usb_cam package? I am encountering this same issue as well.

luketheduke gravatar image luketheduke  ( 2016-05-11 08:44:31 -0500 )edit

Did you try changing the video_device parameter in the launch file of the package? You basically need to use change it to the video device you're operating upon.

rajk97 gravatar image rajk97  ( 2020-07-09 13:31:11 -0500 )edit