ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Which ROS package dependencies are redundant/implicitly included?

asked 2020-07-13 11:58:57 -0600

Pinknoise2077 gravatar image

updated 2020-07-13 16:07:08 -0600

Hi all,

I am wondering the following: when adding a dependency to roscpp, what are the packages that are implicitly included ?

Here is a concrete example:

find_package(catkin REQUIRED COMPONENTS
  rosconsole
  roscpp
  )

In this case, would rosconsole be considered redundant? Is it included in roscpp? If yes, what are the packages that are implicitly included in roscpp?

In summary, how would one find which ROS packages are implicitly included for any package?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-07-13 12:03:02 -0600

Dirk Thomas gravatar image

updated 2020-07-13 16:22:34 -0600

While a package A might bring in dependencies B and C you should always explicitly declare dependencies on all packages which you use directly.

So if you e.g. include headers from A and B you should also declared both explicitly and not rely on the fact that A brings in B implicitly.

how would one find which ROS packages are implicitly included for any package?

rospack depends <pkgname> lists all recursive dependencies of a given package.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-07-13 11:58:57 -0600

Seen: 388 times

Last updated: Jul 13 '20