Ask Your Question
2

circular dependency

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

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 imagebaxelrod ( 2011-03-11 04:13:11 -0500 )edit

2 Answers

Sort by » oldest newest most voted
2

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

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

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 3,858 times

Last updated: Mar 11 '11