运行roscore 出现[rosout-1] process has died [pid 13103, exit code 127
问题:
运行roscore后出现该报错:
[rosout-1] process has died [pid 13103, exit code 127, cmd /opt/ros/melodic/lib/rosout/rosout __name:=rosout __log:=/home/smile2/.ros/log/fe5831bc-b919-11eb-8175-3c58c26f458c/rosout-1.log]. log file: /home/smile2/.ros/log/fe5831bc-b919-11eb-8175-3c58c26f458c/rosout-1*.log [rosout-1] restarting process
解决办法:
gedit ~/.bashrc
再最下面加上下面的代码
# 这里noetic改成你的ros版本,我的版本是noetic
export LD_LIBRARY_PATH=/opt/ros/noetic/lib
然后让环境生效
source ~/.bashrc