查看编译环境 echo $ROS_PACKAGE_PATH 打开编译环境文件 gedit ~/.bashrc 在文件中写入 source ~/tutorial_ws/devel/setup.bash 运行 source ~/.bashrc