本文主要是介绍rqt_graph提示b‘Format: “dot“ not recognized. Use one of:\n‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在终端运行roscore,分别运行rosrun turtlesim turtle和rosrun turtlesim turtle_teleop_key,再输入rqt_graph,提示如下错误
"dot" with args ['-Tdot', '/tmp/tmp145cvdav'] returned code: 1
stdout, stderr:
b''
b'Format: "dot" not recognized. Use one of:\n'
PluginHandlerDirect._restore_settings() plugin "rqt_graph/RosGraph#0" raised an exception:
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/plugin_handler_direct.py", line 121, in _restore_settings
self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_graph/ros_graph.py", line 260, in restore_settings
self._refresh_rosgraph()
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_graph/ros_graph.py", line 289, in _refresh_rosgraph
self._update_graph_view(self._generate_dotcode())
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_graph/ros_graph.py", line 308, in _generate_dotcode
解决办法
在终端输入sudo dot -c
这篇关于rqt_graph提示b‘Format: “dot“ not recognized. Use one of:\n‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!