创建 catkin 工作区 $ mkdir -p ~/ros_tut/src $ cd ~/ros_tut/src $ catkin_init_workspace $ cd ~/ros_tut $ catkin_make $ source ~/ros_tut/devel/setup.bash $ rospack profile $ echo "source ~/ros_tut/devel/setup.bash" >> ~/.bashrc