基础命令
初始化工作空间
cd ~/catkin_ws
mkdir src
catkin_init_workspace
创建package
cd ~/catkin_ws/src
catkin_create_pkg pkg_name [dep.]
下载git上的包
cd ~/catkin_ws/src
git clone XXX.git
下载相关依赖
cd ~/catkin_ws/src
rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
编译工作空间并更新环境变量
cd ~/catkin_ws/src
catkin_make
source ~/catkin_ws/devel/setup.sh