Ask Your Question
2

ROS launch dependency checker

asked 2013-02-22 05:08:46 -0500

updated 2013-02-22 08:18:14 -0500

130s gravatar image

Is there a tool that can be used to check that launch dependencies and other non-compile time dependencies are met. I always have the problem where I fail to make all the packages that are required for a launch file, because the package isn't referenced in the manifest/package.xml. If the package isn't referenced, rosmake will work correctly but calling the launch file will not. This is especially problematic for releases. Ideally a released package would have all dependencies, build, launch, plugins, anything else?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2013-02-22 14:04:25 -0500

joq gravatar image

I like to include rosbuild_add_roslaunch_check() in my unit tests.

It statically checks that the specified launch files only use packages with an explicit dependency.

edit flag offensive delete link more
0

answered 2013-02-22 05:28:16 -0500

dornhege gravatar image

updated 2013-02-22 05:29:23 -0500

Not as far as I know.

It would be a good idea if roslaunch could deliver that. It might be a bit problematic for remote launches.

It can't be done on a per-package level, i.e. "add automatically to depends" as the roslaunch could change what nodes to launch depending on the configuration (and could even use packages that aren't existent, yet).

edit flag offensive delete link more

Comments

A tool for this specific purpose doesn't seem difficult (atleast in the case where packages are statically named, which is most cases since nesting macros doesn't work). Sadly, I wouldn't even know where to start. I'm sure there are tools that would make this easier.

sedwards gravatar image sedwards  ( 2013-02-22 08:56:54 -0500 )edit

With static naming definitely. Seem like @joq's rosbuild command does exactly that.

dornhege gravatar image dornhege  ( 2013-02-23 00:40:24 -0500 )edit
0

answered 2013-02-22 08:17:43 -0500

130s gravatar image

For introspecting the dependencies between launch files, I just started making an rqt plugin for roslaunch, rqt_launch. Discussion for requirements has been going on on github. Comments and request is appreciated (although building all dependent pkgs sounds a little off-direction for this particular tool -- I want to put a focus on introspection and edition, not building).

edit flag offensive delete link more

Comments

1

Interesting tool Isaac, although I agree it's a little off direction. I was hoping for a command line tool. No need for pretty graphics for a developers tool.

sedwards gravatar image sedwards  ( 2013-02-22 08:54:04 -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

Stats

Asked: 2013-02-22 05:08:46 -0500

Seen: 552 times

Last updated: Feb 22 '13