运行roscore报错:RLException: Unable to contact my own server at [http://10.0.0.48:37535/].

... logging to /home/river/.ros/log/ad6d0dcc-cee2-11ee-8568-27a1b895b12b/roslaunch-riverspe-7522.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

RLException: Unable to contact my own server at [http://10.0.0.48:37535/].
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 10.0.0.48

For more tips, please see

    http://wiki.ros.org/ROS/NetworkSetup

The traceback for the exception was written to the log file

原因:.bashrc里设置了启动ros时的地址和名称,所以出现了这个问题,原来是开机就启动连接一个指定的ip地址。但现在不需要这么做,所以要做些修改。

solution:

1.修改.bashrc文件

终端输入

gedit ~/.bashrc

打开.bashrc文件,可以看到原来的ros链接到了一个指定的ip地址(10.0.0.48),所以需要对地址和用户名进行修改(将10.0.0.48改为localhost)。

原来的.bashrc启动ros的部分

修改后的 .bashrc启动ros的部分

2.更新.bashrc文件

终端输入

source ~/.bashrc

更新之后再运行roscore就可以了

  • 9
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值