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

 

  • 8
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值