ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Constraints on Nested Tags in Launch Files

asked 2012-05-04 04:36:46 -0600

jbranchaud gravatar image

updated 2012-07-02 13:47:33 -0600

mjcarroll gravatar image

What kinds of tag nesting are allowed in ROS launch files?

For instance, I know I can have global params within the <launch> tag as well as node params within a specific <node> tag.

But can other things be nested inside of the <node> tag, such as <rosparam>, <include>, other <node> tags?

Example 1:

    <rosparam ... some-file.yml />

Example 2:

    <include ... />

Example 3:

    <node ... >

It seems like example 3 would be illegal, but I am unsure about example 1 and 2. Any help is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-05-04 08:56:34 -0600

The roslaunch/XML wiki page explicitly lays out what types of nesting are allowed. If you go down to the tag reference, each tag has an Elements section which says what elements are allowed inside that particular tag.

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


Asked: 2012-05-04 04:36:46 -0600

Seen: 572 times

Last updated: May 04 '12