原來步驟和命令:
克隆或下載你想要的教學包到工作空間的/src目錄下,例如 ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/xxxxxx.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/xxxxxxxx --ignore-src -r
最后你發現#All required rosdeps installed successfully的提示,成功解決
