Exception in camera_calibration with Bumblebee
I want to use the camera_calibration package to calibrate (both cameras of) the bumblebee 2 camera.
The images are being published correctly with topic names /camera/0/intensity
and /camera/1/intensity
.
I can view the images in the viewer and I can see the values with rostopic echo
.
When I run this command, nothing seems to happen:
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/camera/0/intensity camera:=/camera/0 --no-service-check
I also tried to calibrate just one camera:
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/camera/0/intensity camera:=/camera/0 --no-service-check
But in the case of one camera I get the following error:
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run()
File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 93, in run self.function(m)
File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 175, in handle_monocular drawable = self.c.handle_msg(msg)
File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/calibrator.py", line 691, in handle_msg gray = self.mkgray(msg)
File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/calibrator.py", line 255, in mkgray return self.br.imgmsg_to_cv2(msg, "mono8")
File "/opt/ros/indigo/lib/python2.7/dist-packages/cv_bridge/core.py", line 121, in imgmsg_to_cv2 dtype=dtype, buffer=img_msg.data)
TypeError: buffer is too small for requested array
I am using Ubuntu 14.04 with ROS Indigo and the calibration does work with other cameras. Does anyone have a clue how to solve this?
Did you install all of the dependencies for camera calibration? Try rosdep install camera_calibration
All dependencies were installed with rosdep install camera_calibration, but unfortunately that did not solve it. I got exactly the same error.