我不确定为什么,但是当我单击透视图并单击创建透视图时,rqt崩溃,终端给我以下错误消息:
Traceback (most recent call last):
File "/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/src/qt_gui/perspective_manager.py", line 194, in _on_create_perspective
name = self._choose_new_perspective_name()
File "/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/src/qt_gui/perspective_manager.py", line 206, in _choose_new_perspective_name
self._create_perspective_dialog = loadUi(ui_file)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 266, in loadUi
return _loadUi(uifile, baseinstance, custom_widgets)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 170, in _loadUi
return uic.loadUi(uifile, baseinstance=baseinstance)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/__init__.py", line 222, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/loader.py", line 72, in loadUi
return self.parse(filename, resource_suffix, basedir)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 972, in parse
document = parse(filename)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/share/qt_gui/resource/perspective_create.ui'
weed020@weed020-OptiPlex-7010:~/catkin_ws$ rqt
Traceback (most recent call last):
File "/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/src/qt_gui/perspective_manager.py", line 194, in _on_create_perspective
name = self._choose_new_perspective_name()
File "/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/src/qt_gui/perspective_manager.py", line 206, in _choose_new_perspective_name
self._create_perspective_dialog = loadUi(ui_file)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 266, in loadUi
return _loadUi(uifile, baseinstance, custom_widgets)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/python_qt_binding/binding_helper.py", line 170, in _loadUi
return uic.loadUi(uifile, baseinstance=baseinstance)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/__init__.py", line 222, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/loader.py", line 72, in loadUi
return self.parse(filename, resource_suffix, basedir)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 972, in parse
document = parse(filename)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '/home/weed020/catkin_ws/src/rqt_kinetic/qt_gui_core/qt_gui/share/qt_gui/resource/perspective_create.ui'
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted (core dumped)
我不知道为什么会这样,因为当我在另一台计算机上执行相同的操作时,它完全可以正常工作。如果有人遇到此错误或有任何建议,我真的可以使用一些偶然原因来说明为什么此方法不起作用。我可能不确定,我需要卸载rqt并重新安装它。但是,如果有人对为什么发生这种情况以及如何解决它有任何建议,将不胜感激。如果有帮助的话,我也使用ros kintic