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

Issues with cv_bridge when using in Indigo

asked 2014-05-28 04:30:31 -0500

After updating to Ubuntu 14.04 and Indigo I'm not able to execute the camera_calibration.

With last version of opencv libraries (github repository master) python keeps looking for "". I have no issues with Hydro.

Also when using the repository installation of opencv (2.4.9) camera_calibration gives me this error:

Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 810, in __bootstrap_inner
  File "/opt/ros/indigo/lib/camera_calibration/", line 68, in run
  File "/opt/ros/indigo/lib/camera_calibration/", line 138, in handle_monocular
    drawable = self.c.handle_msg(msg)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/", line 749, in handle_msg
    gray = self.mkgray(msg)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/", line 262, in mkgray
    mono16 =, "mono16")
AttributeError: CvBridge instance has no attribute 'imgmsg_to_cv'

I am trying to calibrate an Argos 3D Tof camera. Everything works in Hydro. Even when I try to execute:

rosrun camera_calibration

I do not get any answer. It gets frozen.

I have not seem any bug reported with the same problem. Is someone else having this issue?

edit retag flag offensive close merge delete


I see the following on indigo ubuntu 14.04 AMD 64: [ERROR] [WallTime: 1404511515.772882] bad callback: <bound method="" facedetector.image_callback="" of="" <__main__.facedetector="" object="" at="" 0x7f8665897e10="">> Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/", line 688, in _invoke_callback cb(msg) File "/home/alan/catkin_ws/src/rbx1/rbx1_vision/src/rbx1_vision/", line 140, in image_callback frame = self.convert_image(data) File "/home/alan/catkin_ws/src/rbx1/rbx1_vision/src/rbx1_vision/", line 281, in convert_image cv_image = self.bridge.imgmsg_to_cv(ros_image, "bgr8") AttributeError: CvBridge instance has no attribute 'imgmsg_to_cv' In hydo I installed ros-hydro-opencv2 and ros-hydro-vision-opencv but opencv2 was not found in indigo. I am wondering if the opencv2 package needs to be built for indigo or installed from git?

DrBot gravatar image DrBot  ( 2014-07-04 17:12:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-28 05:29:59 -0500

ahendrix gravatar image

This sounds like a bug in camera_calibration in Indigo; you should report it against the camera_calibration bug tracker.

edit flag offensive delete link more


Yes it does. Already reported. I will accept your answer as soon the bug report is accepted. Thank you.

amerino gravatar image amerino  ( 2014-05-28 09:36:56 -0500 )edit
amerino gravatar image amerino  ( 2014-06-01 02:25:14 -0500 )edit

Question Tools

1 follower


Asked: 2014-05-28 04:30:31 -0500

Seen: 2,457 times

Last updated: May 28 '14