Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with cv_bridge when using cameracalibrator.py in Indigo #74

Closed
angelmerino opened this issue May 28, 2014 · 3 comments
Closed

Issues with cv_bridge when using cameracalibrator.py in Indigo #74

angelmerino opened this issue May 28, 2014 · 3 comments

Comments

@angelmerino
Copy link

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.

Reported in ROS answers: http://answers.ros.org/question/170971/issues-with-cv_bridge-when-using-cameracalibratorpy-in-indigo/
Report to bug tracker suggested.

@vrabaud
Copy link
Contributor

vrabaud commented May 31, 2014

yes, that's totally a bug: I removed the cv1 support (as it was marked as deprecated) and I did not update that package. Been very busy with ICRA but I am fixing it asap.

@vrabaud
Copy link
Contributor

vrabaud commented Jun 5, 2014

I will not have time to test until this weekend but the following is completely ported to cv2:
https://github.com/vrabaud/image_pipeline/tree/indigo
(feel free to try if you have time)

@angelmerino
Copy link
Author

Thank you for your work.
I'm also kind of busy these days but I will try to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants