小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
roscore运行报错
-
RLException: Unable to contact my own server at [http://nubot1:33131/].
This usually means that the network is not configured properly.A common cause is that the machine cannot connect to itself. Please check
for errors by running:ping nubot1
For more tips, please see
http://wiki.ros.org/ROS/NetworkSetup
The traceback for the exception was written to the log file
-
-
@小鱼 直接在终端输入ping nubot1吗?
-
@1343593905 我是引用的你的报错,你的环境里肯定配了ROS_MASTER_URI之类的,删掉
-
@1064044092 在 roscore运行报错 中说:
2023年3月9日 17:24
RLException: Unable to contact my own server at
Thank you for answering the question!
For the problem that I confront, I solve it this wayAfter installing Ros noetics, when I was running commend "roscore" I got this issue
RLException: Unable to contact my own server at [http://192.168.123.20:46397/]. This usually means that the network is not configured properly. A common cause is that the machine cannot connect to itself. Please check for errors by running: ping 192.168.123.20 For more tips, please see http://wiki.ros.org/ROS/NetworkSetup The traceback for the exception was written to the log file
and solve it in this way
Change your ROS_MASTER_URI and ROS_HOSTNAME in ~/.bashrc and delete POS_IP which is related to IP 192.168.123.20export ROS_MASTER_URI=http://robot.local:11311 export ROS_HOSTNAME=localhost export ROS_IP='hostname -I'
for other version of ros maybe will work with following ROS_HOSTNAME
export ROS_HOSTNAME=robot.local
Don't forget source ~/.bashrc
For additional info can refer to following link
https://blog.csdn.net/Will_Ye/article/details/119912488