ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

Exploring package dependencies

I think that rqt_dep is not available yet in ROS2. Would there be another way of exploring package dependencies besides than through ament list_dependencies or following the sources?


The new build tool colcon which has been introduced with ROS 2 Bouncy does provide a way to output:

  • a list of dependencies for a package (colcon info <pkgname>)
  • the topological ordered list of packages using “ASCII art” (colcon graph)
  • a dot graph to visualize the dependency hierarchy (colcon graph --dot | dot -Tpng -o deps.png)

For the last two you can narrow the set of shown packages by using --packages-select[-regex] or similar options.