Ask Your Question

How can I list the dependencies of a package

asked 2018-04-16 07:31:11 -0600

bear234 gravatar image

I've downloaded the ROS Base and some other ROS packages.

Also, I've followed the doc to install them.

Now I need to check which dependencies (so file) are used for each ROS package.

Is it possible?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2018-04-16 07:48:39 -0600

updated 2020-06-11 09:59:40 -0600

lucasw gravatar image

Do this:

rospack depends [name of package]
edit flag offensive delete link more

answered 2019-06-10 22:46:10 -0600

M@t gravatar image

updated 2019-06-11 17:54:38 -0600

An alternative to rospack depends is rqt_dep which visualizes the connections like so:

image description

The documentation for rqt_dep seems to be non-existent, but thankfully it is a simple interface so you can figure out what most options do through trial-and-error.

Tip: If you are using rqt_dep to show the dependencies for a package, make sure you source the workspace that contains that package first. Otherwise, when you type in your package name, nothing will show up.

edit flag offensive delete link more

answered 2018-04-16 19:18:38 -0600

Karim Chamaa gravatar image

In addition to the rospack command, you can open the package CMakelist.txt file and read the dependencies.

edit flag offensive delete link more



The CMakeLists.txt is only for C++ dependencies, and may not show Python dependencies.

ahendrix gravatar image ahendrix  ( 2018-04-16 19:50:41 -0600 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2018-04-16 07:31:11 -0600

Seen: 3,618 times

Last updated: Jun 11 '20