使用树莓派,运行 ROS,出现
Unable to contact own server at geng-pi
This usually means that the network is not configured properly.
A common cause is that machine cannot ping itself. Please check for errors by running:
ping geng-pi
......
按照提示,执行 ping geng-pi
,发现后面紧跟着 192.168.1.10
好吧,下面还说,更多细节,详见
http://www.ros.org/ROS/NetworkSetup
打开看后,解决了问题。
查看当前主机及其对应的IP
sudo vim /etc/hosts
里面是 192.168.1.10
,而现在实际 IP(使用 ifconfig
查看) 为 192.168.1.8
改称现在实际的就可以了。
如果不行,可参考上面网址哦,可能是其他地方没配置正确。