Ctrl+Alt+T 打开终端,执行以下指令 echo "source ~/catkin_ws(工作空间的名字)/devel/setup.bash" >> ~/.bashrc source ~/.bashrc