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

Error while interfacing my webcam to ROS

asked 2015-06-29 10:39:43 -0500

Kishore Kumar gravatar image

updated 2015-06-30 05:58:35 -0500

I installed ros-indigo-usb-cam package and executed the code rosrun usb_cam usb_cam_node ~video_device "/dev/video0" which resulted in following error

[ERROR] [1435589390.503107344]: outbuf size mismatch. pic_size: 604160 bufsize: 614400

How to fix this error for my logitech USB webcam, also educate me how to view the vision specifications of the camera in ROS.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-30 06:22:49 -0500

updated 2015-11-22 06:07:05 -0500

lucasw gravatar image

Hello, I meet the same problem. My camera is logitech C525. And I finally resolved it.

Go to the catkin workspace,

$ gedit src/usb_cam/src/usb_cam.cpp

find the sentence and comment it like this,

if (pic_size != avframe_camera_size_)
   //  ROS_ERROR("wocaonima, outbuf size mismatch.  pic_size: %d bufsize: %d", pic_size, avframe_camera_size_);
   //  return; 


$ catkin_make

So that, resolve the problem.

edit flag offensive delete link more



If you believe that is the correct solution, please open a pull request so the maintainer knows about it:

joq gravatar image joq  ( 2015-11-22 10:07:31 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-29 10:39:43 -0500

Seen: 1,629 times

Last updated: Nov 22 '15