roscore启动不完全问题


 

运行roscore,得到如下日志,且一直卡着无法继续执行

... logging to /home/xbit/.ros/log/79f2952c-589c-11ea-8213-d0abd5e7d222/roslaunch-x-11085.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.

 

原因:ROS_IP和ROS_HOSTNAME错误

解决办法:将如下脚本加入~/.bashrc中即可

export ROS_HOSTNAME=127.0.0.1 export ROS_IP=127.0.0.1
if [ -f /opt/ros/melodic/setup.bash ]; then
    source /opt/ros/melodic/setup.bash
elif [ -f /opt/ros/kinetic/setup.bash ]; then
    source /opt/ros/kinetic/setup.bash
else
    echo "No ros distro found!"
fi

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM