ROS Unable to contact my own server at [http://eric-ms-7a54:42579/]

今天在使用ros环境的时候出现了下面的问题:

➜  ~ roscore      
... logging to /home/eric/.ros/log/4f4e2e38-d093-11eb-85c4-0242323584ca/roslaunch-eric-ms-7a54-2130.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://eric-ms-7a54:42579/].
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 eric-ms-7a54

For more tips, please see

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

The traceback for the exception was written to the log file                              

解决方法

export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311

结果跑通了

➜  ~ roscore                                     
... logging to /home/eric/.ros/log/eed4c4da-d093-11eb-85c4-0242323584ca/roslaunch-eric-ms-7a54-6906.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.

started roslaunch server http://localhost:34153/
ros_comm version 1.12.17


SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.17

NODES

auto-starting new master
process[master]: started with pid [6926]
ROS_MASTER_URI=http://localhost:11311/

setting /run_id to eed4c4da-d093-11eb-85c4-0242323584ca
process[rosout-1]: started with pid [6940]
started core service [/rosout]

参考文献

运行roscore时候报错 Unable to contact my own server at的解决方法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值