roscore失败,提示RLException: Unable to contact my own server
在给Jetson Xavior配环境的过程中,发现roscore会报错,报错如下:
robot@robot:~$ roscore
... logging to /home/robot/.ros/log/67bcd434-f455-11eb-b3b6-204ef6c5f181/roslaunch-robot-22150.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://192.168.100.3:41153/].
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 192.168.100.3For more tips, please seehttp://wiki.ros.org/ROS/NetworkSetupThe traceback for the exception was written to the log file
这是由于在.bashrc
里设置了启动ros时的地址和名称,我这里是copy了别人的镜像文件,所以出现了这个问题,他们原来是开机就启动连接一个指定的ip地址。
但在我这里现在不需要这么做,所以要做些修改:
以下是原始的.bashrc
启动ros的部分,可见问题是由最后两行引起的
source /opt/ros/melodic/setup.bash
#source /home/robot/hku15_car_ws/devel/setup.bash
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda-10.2/bin
export LD_LIBRARY_PATH=/opt/ros/melodic/lib
export ROS_MASTER_URI=http://192.168.100.3:11311
export ROS_HOSTNAME=192.168.100.3
所以,只要改一下这个地址和用户名就可以了
改成如下:
export ROS_MASTER_URI=http://robot.local:11311
export ROS_HOSTNAME=robot.local
修改后保存,然后在source一次.bashrc
就可以了。
然后再次启动roscore,成功
robot@robot:~$ roscore
... logging to /home/robot/.ros/log/a3782aa6-0575-11ec-b3b6-204ef6c5f181/roslaunch-robot-24896.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.started roslaunch server http://robot.local:33981/
ros_comm version 1.14.11SUMMARY
========PARAMETERS* /rosdistro: melodic* /rosversion: 1.14.11NODESauto-starting new master
process[master]: started with pid [24915]
ROS_MASTER_URI=http://robot.local:11311/setting /run_id to a3782aa6-0575-11ec-b3b6-204ef6c5f181
process[rosout-1]: started with pid [24928]
started core service [/rosout]
roscore失败,提示RLException: Unable to contact my own server相关推荐
- 运行roscore时候报错 Unable to contact my own server at 及 小海龟动不了的问题
运行roscore时候报错 Unable to contact my own server at 记起曾经无知的时候跟着某个步骤(以下)来了一发这样的操作,把我的ROS_MASTER_URI设置成指定 ...
- 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 ...
- Ubuntu运行roscore时候报错 Unable to contact my own server at xxx的解决方法
在设置环境变量时,输入这两个指令: echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc source ~/.b ...
- 使用Sourcetree进行Git操作时失败提示:Unable to create '../.git/index.lock': File exists.
今天使用git时发现无法切换分支,也无法拉取更新代码,报错: fatal: Unable to create '-/.git/index.lock': File exists. 分析原因应该是:我在使 ...
- Git操作失败提示fatal: Unable to create 'E:/GitDemos/todolist/.git/index.lock': File exists...
今天在使用Git提交修改内容到github时,出现报错如下: 这是Git在操作过程中因为出现错误使得部分资源被上锁但没有被释放导致的,我们只需要进入项目文件下的.git文件夹中(如果没看到这个文件夹在 ...
- 客户机无法上网,ping 127.0.0.1提示unable to contact IP driver ,error code2
环境:winxp sp3,内部静态IP 故障现象: 1.本地连接无法访问网络 2.ping 127.0.0.1 提示:unable to contact IP driver ,error code2 ...
- vscode中文插件安装失败,提示:Unable to write into the file. Please open the file to correct errors/warnings in
vscode中文插件安装失败,提示:Unable to write into the file. Please open the file to correct errors/warnings in ...
- proftpd启动失败提示unable to determine IP address of “xxx.com”
proftpd启动失败提示unable to determine IP address of "xxx.com" 这种proftpd启动失败的原因是无法解析后面主机的IP地址,解决 ...
- unable to contact ip driver
最近在一家客户里发现这样一个情况,域里的计算机突然上不了网,网络连接看起来正常,但是 PING不通,连域用户都没有了,运行PING 或IPCONFIG时会提示: unable to contact i ...
最新文章
- mysql grant 主机名_MySQL GRANT:用户授权
- 大商超的2020:转型、收紧、试新
- 子线程适当Sleep的重要性
- 界面按钮太多 聊天机器人都快被玩坏了
- java数据库的优化_用Java向数据库中插入大量数据时的优化
- 天龙八部服务器都需要那种系统,天龙八部排行榜系统怎么看 排行榜系统分类介绍...
- jenkins 安装插件失败_Jenkins 自动化安装插件
- 异常的产生与传递 java 1615309080
- [转]PDB——Python调试利器详解
- NopCommerce支持友好路由
- 写一个Windows上的守护进程(7)捕获异常并生成dump
- Apache Flink Time Window 深度解析
- 在centos7部署etcd v3的c++客户端
- bay——RAC_ASM ORA-15001 diskgroup DATA does not exist or is not mounted.docx
- 最速下滑法c语言程序,最速下降法 C语言.doc
- 干货分享:给视频翻译字幕可以用哪些软件?
- 高中计算机课简单介绍,高中课程介绍
- 2011年-2019年华东地区产业发展、人口以及平均工资简析
- 「雕爷学编程」Arduino动手做(13)——触摸开关模块
- 002-windowa基础(DOS命令:net user 用户 密码 /add)