camera_calibration not working Melodic Ubuntu 18.04
Hi All
Trying to calibrate a USB camera, using usb_cam to get the image topics and image_pipeline camera_calibration to calibrat. The calibration GUI shows up but the image is blank and get this error message. Searched for a solution few people have a similar problem but no solutions?
Run:
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/usb_cam/image_raw camera:=/usb_cam
Output:
('Waiting for service', '/usb_cam/set_camera_info', '...')
OK
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/home/user/catkin_ws/src/image_pipeline/camera_calibration/src/camera_calibration/camera_calibrator.py", line 107, in run
self.function(m)
File "/home/user/catkin_ws/src/image_pipeline/camera_calibration/src/camera_calibration/camera_calibrator.py", line 181, in handle_monocular
max_chessboard_speed = self._max_chessboard_speed)
File "/home/user/catkin_ws/src/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py", line 725, in __init__
super(MonoCalibrator, self).__init__(*args, **kwargs)
TypeError: super() argument 1 must be type, not classobj
(display:26734): GLib-GObject-CRITICAL **: 15:54:17.428: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
It looks like you are not using the version of
image_pipeline
designed for rosmelodic
. Have you checked out the git branch namedmelodic
?