BLOG
미분류

How to install ros dependencies using rosdep?


April 16, 2024, 3:46 p.m.



When I clone some ros packages from github and do catkin_make. Sometimes it failed because there are no dependencies of this package installed. And you can see this kind of error msgs.

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "geographic_msgs"
  with any of the following names:

    geographic_msgsConfig.cmake
    geographic_msgs-config.cmake

How to easily install these packages?

We can install only type this one line of code.

Assume you are in the workspace root directory, then

rosdep install --from-paths src --ignore-src

Done!

ros rosdep



Search