向工作空间添加包
进入目录src:
cd ~/catkin_ws/src
从github仓中复制一个包为 simple_arm:
git clone https://github.com/udacity/simple_arm_01.git simple_arm
编译 simple_arm包:
cd ~/catkin_ws
catkin_make
如果出现下面错误:
“Could not find a package configuration file provided by controller_manager”
使用apt-get安装丢失的包:
sudo apt-get install ros-kinetic-controller-manager
也可以使用下面的方法安装丢失的包:
source devel/setup.bash
rosdep install simple_arm
再次编译:
catkin_make