Listing dependencies in package.xml that are also dependency of dependency
I'm interested in hearing about best practice of listing a dependency in package.xml that is already a dependency of another dependency.
Let's say I have two packages:
foo_interfaces
- with a dependency onbuiltin_interfaces
foo_core
- with a dependency onfoo_interfaces
In foo_core
, I fill out a message defined in foo_interfaces
, and in doing so, I import builtin_interfaces
. So, a file in foo_core
would look like this for example:
import builtin_interfaces
import foo_interfaces
bar = foo_interfaces.msg.Bar()
bar.header.stamp = builtin_interfaces.msg.Time()
In this case, builtin_interfaces
is a dependency of foo_interfaces
, so it should be available as long as foo_core
depends on foo_interfaces
. So, having builtin_interfaces
in foo_core's package.xml would be redundant.
Is it better practice to add builtin_interfaces
to foo_core
's package.xml, and why (or not) would that be better?