原来步凑和命令:
克隆或下载ROS-Academy-for-Beginners教学包到工作空间的/src目录下,例如 ~/catkin_ws/src
- cd ~/catkin_ws/src
- git clone https://github.com/DroidAITech/ROS-Academy-for-Beginners.git
安装教学包所需的依赖
- cd ~/catkin_ws
- rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
在使用rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
命令安装依赖的时候出现了,如下错误:
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rbx1_speech: Cannot locate rosdep definition for [pocketsphinx]
解决:
把:rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
改成:rosdep install --from-paths ~/catkin_ws/src/ROS-Academy-for-Beginners --ignore-src -r
最后你发现#All required rosdeps installed successfully的提示,成功解决。
参考文献:安装iai-kinect2与ERROR: the following packages/stacks could not have their rosdep keys resolved to