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

circular dependency

asked 2011-03-10 06:31:37 -0600

baxelrod gravatar image

Are there any ROS tools to help me track down circular dependencies between my ROS nodes?

edit retag flag offensive close merge delete

Comments

As a follow up, I thought i had a circular dependency in my packages because when i call rosmake with a few of my stacks, i see this message: [rospack] woah! expanding the dependency tree made it blow up.
baxelrod gravatar image baxelrod  ( 2011-03-11 04:13:11 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-03-10 13:04:42 -0600

joq gravatar image

Note that dependencies are between packages or stacks, not nodes.

To list the dependencies of a package named foo:

$ rospack depends foo

To list the packages that depend on foo (directly or indirectly):

$ rospack depends-on foo
edit flag offensive delete link more
0

answered 2011-03-11 04:17:54 -0600

baxelrod gravatar image

As a follow up, I thought I had a circular dependency in my packages because when i call rosmake with a few of my stacks, i see this message:

[rospack] woah! expanding the dependency tree made it blow up.

But when I manually created a circular dependency in some packages, they would not even compile. Because rosmake found the circular dependency right away. Even if I tried to compile with the "-s" flag.
Maybe that message is only for inter-stack circular dependencies? But rosmake seems to handle it fine, so i am not worried about it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-10 06:31:37 -0600

Seen: 4,124 times

Last updated: Mar 11 '11