之前改过ip,导致roscore无法打开.
错误代码:
Unable to contact my own server at [http://localhost:60852/].
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 localhost
For more tips, please see
http://www.ros.org/wiki/ROS/NetworkSetup
The traceback for the exception was written to the log file
解决方案:单机版
1.在bashrc中最后添加
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
2.因为之前改过ip,需要在/etc/hosts中将所有ip改为127.0.0.1,ip为本地ip,用作回环测试,数据不会发送到网络.