RLException:Unable to contact my own server at
问题:RLException:Unable to contact my own server at [http://192.168.0.101:42985/].This usually means that the network is not configured properly.A common cause is that the machine cannot ping itself. Pl
问题:
RLException:Unable to contact my own server at [http://192.168.0.101:42985/].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 192.168.0.101
For more tips, please see
http: / /www.ros .org/wiki/ROS/NetworkSetup
The traceback for the exception was written to the log file
解决方法:修改文件.bashrc中的内容
方法一:
1、在主文件夹中显示隐藏文件,Ctrl+h
2、直接打开文件.bashrc
3、修改其中的两行内容
$ export ROS_HOSTNAME=localhost
$ export ROS_MASTER_URI=http://localhost:11311
4、命令:source ~/.bashrc 更新 .bashrc
方法二:
1、命令:ls -a 找到文件 .bashrc;
2、命令 vim ~/.bashrc 进入到文件;
3、直接按 i 键可以对文件进行修改,
$ export ROS_HOSTNAME=localhost
$ export ROS_MASTER_URI=http://localhost:11311
4、Esc + :+ wq 退出并保存修改之后的文件
5、命令 :source ~/.bashrc 更新 .bashrc
更多推荐
所有评论(0)