1.mkdir catkin_ws/src
2.cd catkin_ws/src
3.catkin_init_workspace
4.cd ~/catkin_ws/
5.catkin_make
6.在bashrc中添加 source ~/catkin_ws/devel/setup.bash
7.source ~/.bashrc
8.创建功能包
cd ~/catkin_ws/src
catkin_create_pkg 功能包名字 std_msgs rospy roscpp
9.cd ~/catkin_ws
10.catkin_make