ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to find out which ROS packages requires?

asked 2022-06-07 00:29:32 -0500

prog13579 gravatar image


For some reason I want to know which ROS packages that requires, but there are many library files in the /opt/ros/foxy/lib folder, is there any method that I can get such information or can I get this information from the code, thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2022-06-14 02:46:42 -0500

qilin_gundamenjoyer gravatar image

updated 2022-06-14 02:54:15 -0500

rospack depends [package_name] will list out the dependencies required for the package. Keep in mind, rospack depends will only traverses run dependencies. This means that it will only list out the manifest files, not the cmake_modules.

rqt_dep will display a ROS dependency graph. To use rqt_graph, ensure the workspace that contains the packages is sourced. If the workspace isn't sourced or it doesn't contain the packages, rqt_graph will display nothing.

To check for direct dependencies for multiple packages, rosdep check --from-paths or rosdep keys --from-paths does the trick. Without --from-paths, rosdep check will only check that the dependencies of the given package are met.

And if you are feeling not tech-savvy, you can always default to the official repository website to find all the packages and the additional packages listed for!

rosdep || rospack

edit flag offensive delete link more

answered 2022-06-14 02:16:02 -0500

Maxime gravatar image

The list of aptpackages installed in the Docker image is here:

Some additional repositories are used and are listed here:

Finally, many dependencies are installed with rosdep which you can list with command rosdep keys --from-paths --ignore-src src | sort -u -f.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-06-07 00:29:32 -0500

Seen: 53 times

Last updated: Jun 14 '22