Usb_cam test not showing camera image, unknown autofocus and white balance error

asked 2022-07-08 12:57:46 -0500

Hello all! I'm trying to test if my camera is working in ROS Noetic, using a virtual machine of Ubuntu 20.04, I am using a built in camera but the output from roslaunch usb_cam usb_cam-test.launch is:

[ WARN] [1657299547.984173771]: Camera calibration file /home/user/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1657299547.984265646]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[ WARN] [1657299548.135537032]: unknown control 'white_balance_temperature_auto'

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

[ WARN] [1657299676.622277394]: Left-clicking no longer saves images. Right-click instead.

And the camera shows a green color with some static, when checking:

$ v4l2-ctl --list-device
VirtualBox Webcam - FaceTime HD (usb-0000:00:0c.0-2):
    /dev/video0
    /dev/video1

There are two devices listed so my theory is that video0 is incorrect and I should try to test video1, I see that the default is to open video0. Is there a way to try to open video1 and see if that is the actual working camera? Anyone knows what the unknown control errors are? My end goal is to do http://wiki.ros.org/camera_calibratio... but I need to camera to work first

If there is more info needed i'd be happy to provide it, thanks!

edit retag flag offensive close merge delete