USB Camera Error: outbuf size mismatch

942 views
Skip to first unread message

Tim Slator

unread,
Sep 19, 2015, 12:02:41 PM9/19/15
to ros-by-example
I'm running ROS Indigo on Ubuntu 14 using VirtualBox (v5).  While attempting to run usb_cam.launch I get the following output including an error regarding a mismatch in the outbuf size.  The camera is a Logitech QuickCam Pro 9000.  I am able to get an image via OpenCV and also using GuvcViewer.  Anyone have any idea what might be wrong?  Thanks


viki@c3po:~/catkin_ws$ roslaunch rbx1_vision usb_cam.launch video_device:=/dev/video0
... logging to /home/viki/.ros/log/af634012-5ee1-11e5-82bb-080027d41247/roslaunch-c3po-7626.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://c3po.local:43631/

SUMMARY
========

CLEAR PARAMETERS
 * /usb_cam/

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.13
 * /usb_cam/autofocus: True
 * /usb_cam/brightness: 32
 * /usb_cam/camera_frame_id: camera_link
 * /usb_cam/contrast: 32
 * /usb_cam/framerate: 30
 * /usb_cam/image_height: 240
 * /usb_cam/image_width: 320
 * /usb_cam/pixel_format: mjpeg
 * /usb_cam/saturation: 32
 * /usb_cam/video_device: /dev/video0

NODES
  /
    usb_cam (usb_cam/usb_cam_node)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[usb_cam-1]: started with pid [7645]
[ INFO] [1442678080.089228710]: using default calibration URL
[ INFO] [1442678080.089325405]: camera calibration URL: file:///home/viki/.ros/camera_info/head_camera.yaml
[ INFO] [1442678080.089387140]: Unable to open camera calibration file [/home/viki/.ros/camera_info/head_camera.yaml]
[ WARN] [1442678080.089427289]: Camera calibration file /home/viki/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1442678080.089459925]: Starting 'head_camera' (/dev/video0) at 320x240 via mmap (mjpeg) at 30 FPS
[ WARN] [1442678080.218018819]: brightness: Input/output error
VIDIOC_S_CTRL: failed: Input/output error

[ WARN] [1442678080.221900412]: unknown control 'contrast'

[ WARN] [1442678080.224878266]: unknown control 'saturation'

[ WARN] [1442678080.228436750]: unknown control 'white_balance_temperature_auto'

[ INFO] [1442678080.228507747]: V4L2_CID_FOCUS_AUTO is not supported
[ WARN] [1442678080.233502542]: unknown control 'focus_auto'

[ERROR] [1442678082.413912400]: outbuf size mismatch.  pic_size: 115200 bufsize: 153600
[ERROR] [1442678082.415420730]: outbuf size mismatch.  pic_size: 115200 bufsize: 153600
[ERROR] [1442678082.451360382]: outbuf size mismatch.  pic_size: 115200 bufsize: 153600
[ERROR] [1442678082.518691864]: outbuf size mismatch.  pic_size: 115200 bufsize: 153600

Tim Slator

unread,
Sep 19, 2015, 12:25:08 PM9/19/15
to ros-by-example
Changing pixel_format from mjpeg to yuyv seems to resolve the size mismatch but now all I get is a green screen with some 'snow' at the top

Tim Slator

unread,
Sep 19, 2015, 12:33:10 PM9/19/15
to ros-by-example
FYI, changed pixel_format from mjpeg to yuyv and got a green screen.  Then, changed to a newer camera (C615) and changed pixel_format back to mjpeg, now I'm getting a good picture.


On Saturday, September 19, 2015 at 9:02:41 AM UTC-7, Tim Slator wrote:
Reply all
Reply to author
Forward
0 new messages