linux - 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
我的校准窗口打开了。但是没有视频流是黑色的,所以我不能校准我的相机。请帮忙。
解决方案
对于 Python 3 A 类:通过
对于 Python 2 类 A(对象):通过
推荐阅读
- java - 以递归方式,如何计算java中char数组中的单词数?
- django - 如果我从 django 中的用户那里获取 IP 地址,我应该如何将它存储在模型中?
- jquery - 更新特定记录时,它仅更新第一条记录
- c++ - 如何向下转换子类中的数据?
- tkinter - 我想在框架 f1b 中添加输入框,然后将其放置在画布 c1 上(抱歉无法在 postb 下嵌入图像
- r - ggplot2,geom_point 距离
- html - 在css3中对角对齐文本
- android - 检查 API 请求正文
- azure - 我可以为 Azure 容器实例 (ACI) 分配保留 IP 吗?
- python - 尝试创建同一类的多个实例时无法腌制 _tkinter.tkapp 对象错误