admin管理员组文章数量:1529456
https://blog.csdn/xiaodingqq/article/details/87690563
错误出在运行节点时, 出现原因待定,但是这个错误是本地的会还地址出错了,所以当你发布话题再去接收时,就会收不到
错误提示:
ERROR: unable to contact ROS master at [11311]
The traceback for the exception was written to the log file
解决办法:
在终端上,输入以下命令:
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
如果涉及主从机,则在终端上,输入以下命令:
export ROS_HOSTNAME=本机的IP
export ROS_MASTER_URI=http://ros mater的IP:11311
永久解决:
在终端输入以下命令
vim ~/.bashrc
到文件最下面(底部)添加(更改):
export ROS_MASTER_URI=http://localhost:11311
export ROS_HOSTNAME=localhost
版权声明:本文标题:ROS运行错误:无法连接到ROS master,ERROR: unable to contact ROS master at [http:11311] 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1726641448a1079690.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论