Ask Your Question
1

How can I list the dependencies of a package

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

bear234 gravatar image

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

Also, I've followed the doc http://wiki.ros.org/kinetic/Installat... 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
5

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

updated 2018-04-16 07:49:46 -0500

rospack depends [name of package]

edit flag offensive delete link more
3

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

M@t gravatar image

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

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
-1

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

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

Comments

1

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

ahendrix gravatar imageahendrix ( 2018-04-16 19:50:41 -0500 )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

2 followers

Stats

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

Seen: 1,136 times

Last updated: Jun 11