Ask Your Question
0

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
0

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; 
}

Then,

$ catkin_make

So that, resolve the problem.

edit flag offensive delete link more

Comments

1

If you believe that is the correct solution, please open a pull request so the maintainer knows about it: https://github.com/bosch-ros-pkg/usb_cam

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,040 times

Last updated: Nov 22 '15