码迷,mamicode.com
首页 > Web开发 > 详细

roscore报错:Unable to contact my own server at [http://w:46221/].

时间:2019-10-25 19:58:00      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:back   lease   ifconf   one   发送   director   conf   common   class   

今天我把自己的电脑命令提示符等改了,现在运行roscore报错:

... logging to /home/w/.ros/log/481d4d36-f716-11e9-9b7a-4cedfb3da8b4/roslaunch-w-23661.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

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

For more tips, please see

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

The traceback for the exception was written to the log file

  然后我试着ping了一下自己:

ping: unknown host w

  解决办法:

首先查看自己的IP:10.10.10.XXX

 ifconfig
enp6s0    Link encap:以太网  硬件地址 4c:ed:fb:3d:a8:b4  
          inet 地址:10.10.10.XXX  广播:10.10.10.255  掩码:255.255.255.0
          inet6 地址: fe80::83aa:6f6c:4134:335a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:737651 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:282807 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:270935837 (270.9 MB)  发送字节:67438678 (67.4 MB)

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  跃点数:1
          接收数据包:319868 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:319868 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:166128186 (166.1 MB)  发送字节:166128186 (166.1 MB)

  然后设置ros_ip

export ROS_IP="xxx.xxx.xxx.xxx"

  现在再运行roscore就OK了.

 技术图片

 

roscore报错:Unable to contact my own server at [http://w:46221/].

标签:back   lease   ifconf   one   发送   director   conf   common   class   

原文地址:https://www.cnblogs.com/wongyi/p/11739827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!