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

Constraints on Nested Tags in Launch Files

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

jbranchaud gravatar image

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

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:

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

Example 2:

<node>
    <include ... />
</node>

Example 3:

<node>
    <node ... >
        ...
    </node>
</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
3

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

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

Question Tools

Stats

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

Seen: 670 times

Last updated: May 04 '12