The rosdep tool installs dependencies with one click

First of all, no matter which ros distribution it is, first switch to the workspace directory in the terminal cd

1. Run the command

rosdep update

Note: When the network condition of this step is not good, most of the failures can be ignored, and then catkin_make first, it will report the lack of dependent packages, and then proceed to the next step, the effect is almost the same.

2. Select the appropriate command according to the ros release version

Use the command to install the missing kinetic dependencies with one click:

rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y

or

sdep install --from-paths src --ignore-src -r -y

Use the command to install the missing melodic dependencies with one click:

rosdep install --from-paths src --ignore-src --rosdistro=melodic -y

or

rosdep install --from-paths src --ignore-src -r -y

Guess you like

Origin blog.csdn.net/qq_21830903/article/details/110407650