admin管理员组文章数量:1530068
长时间不运行ROS,再次运行roscore报错如下
Unable to contact my own server at [http://ly:46129/].
This usually means that the network is not configured properly.
A common cause is that the machine cannot ping itself. Please check
for errors by running:
ping ly
For more tips, please see
http://www.ros/wiki/ROS/NetworkSetup
The traceback for the exception was written to the log file
解决方法如下:
方法1 连续输入两个命令
$ export ROS_HOSTNAME=localhost
$ export ROS_MASTER_URI=http://localhost:11311
再次在同一个终端里运行,即可成功。但是重新打开终端还需重新输入。
方法2
在文件setup.sh中修改,添加上述两项环境变量
sudo vim /opt/ros/kinetic/setup.sh
修改之后source命令使环境变量生效。
$ source /opt/ros/kinetic/setup.sh
本文标签: 报错Contactunableroscorely
版权声明:本文标题:roscore运行报错Unable to contact my own server at [http:ly:46129]. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1726643097a1079839.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论