First of all, no matter what a ros release, the first terminal cd
to switch to the workspace directory
1, run the command
rosdep update
Note: This step is a bad time network conditions, most of the failure can be ignored, then the first catkin_make
look, will complain the lack of dependencies , then the next step, the effect is almost pro-test.
2, according to the release ros select the appropriate command
A command key installed using the kinetic missing dependency:
rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
Use of a command key installed melodic missing dependency:
rosdep install --from-paths src --ignore-src --rosdistro=melodic -y