Ask Your Question
0

Issues with cv_bridge when using cameracalibrator.py 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 "cv.so". 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/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 68, in run
    self.function(m)
  File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 138, in handle_monocular
    drawable = self.c.handle_msg(msg)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/calibrator.py", line 749, in handle_msg
    gray = self.mkgray(msg)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/camera_calibration/calibrator.py", line 262, in mkgray
    mono16 = self.br.imgmsg_to_cv(msg, "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 cameracalibrator.py

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

Comments

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/topics.py", line 688, in _invoke_callback cb(msg) File "/home/alan/catkin_ws/src/rbx1/rbx1_vision/src/rbx1_vision/ros2opencv2.py", line 140, in image_callback frame = self.convert_image(data) File "/home/alan/catkin_ws/src/rbx1/rbx1_vision/src/rbx1_vision/ros2opencv2.py", 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
1

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

Comments

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
1
amerino gravatar image amerino  ( 2014-06-01 02:25:14 -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: 2014-05-28 04:30:31 -0500

Seen: 2,131 times

Last updated: May 28 '14