首页 > 解决方案 > Ubuntu ros 校准单目相机错误

问题描述

我在 Ubuntu 18.04 上安装了 ROS,我正在尝试按照 ROS wiki 校准单目相机。之后 rosrun camera_calibration cameracalibrator.py --size 7x8 square 0.08 image:=/usb_cam/image_raw camera:=/usb_cam,我得到这个:

('Waiting for service', '/usb_cam/set_camera_info', '...')
OK
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/ros/catkin_ws/src/camera_calibration/src/camera_calibration/camera_calibrator.py", line 107, in run
    self.function(m)
  File "/home/ros/catkin_ws/src/camera_calibration/src/camera_calibration/camera_calibrator.py", line 181, in handle_monocular
    max_chessboard_speed = self._max_chessboard_speed)
  File "/home/ros/catkin_ws/src/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:18434): GLib-GObject-CRITICAL **: 17:33:52.328: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

我的校准窗口打开了。但是没有视频流是黑色的,所以我不能校准我的相机。请帮忙。

标签: linuxubuntu-18.04ros

解决方案


对于 Python 3 A 类:通过

对于 Python 2 类 A(对象):通过


推荐阅读