roslaunch 时出现resource 找不到的问题

Resource not found: roslaunch
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/opt/ros/noetic/share
The traceback for the exception was written to the log file
多半是因为找不到文件路径
确保 source [工作路径]/devel/setup.bash
这个方法我没有奏效,是因为ros path 还是不能读取文件路径
此时需要手动进行添加
//打开文件

gedit ~/.bashrc

//在文件末尾添加自己的文件路径

source  /你的ros工作空间路径/devel/setup.bash
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:~/[工作路径]/src

非原创,只是为了记录解决过程,附上大佬原链接
原链接

你可能感兴趣的:(自动驾驶,人工智能,机器学习)