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