ROS 中的错误Done checking log file disk usage. Usage is <1GB. Unable to contact my own server at [http:

ROS用户在尝试运行roscore时遇到网络配置问题,错误显示无法联系到服务器。错误源于日志文件磁盘使用率检查完成后,网络未正确配置。解决方法包括检查和修复网络配置,确保能ping通自身IP,并在.bashrc文件中添加ROS主机名、ROS主服务器URI的导出设置。修改后,保存文件并重启终端,roscore应能正常运行。
摘要由CSDN通过智能技术生成

ROS 中的错误Done checking log file disk usage. Usage is <1GB.

Unable to contact my own server at [http://192.168.1.104:54385/].
This usually means that the network is not configured properly.

1.错误

siat@ubuntu:~$ roscore
... logging to /home/siat/.ros/log/f973aef0-3ff4-11e5-a30c-28d244c5bb27/roslaunch-ubuntu-11487.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://192.168.1.104:54385/].
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.1.104

For more tips, please see

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

2.原因:多次将source命令和export命令写进bashrc文件

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi
source /opt/ros/kinetic/setup.bash
source ~/racecar/devel/setup.bash
source ~/catkin_ws/devel/setup.ba

3.解决办法:

3.1 打开bashrc文件,将最后几行修改如下。
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi
source /opt/ros/kinetic/setup.bash
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/sz/catkin_ws/src
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
#source ~/racecar/devel/setup.bash
3.2 保存并关闭此文件,然后重新打开终端运行roscore即可。
  • 2
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值