Does ROS2 launch.xml support inline yaml like <rosparam>?

asked 2021-04-21 22:34:43 -0500

Rufus gravatar image

updated 2021-04-22 03:22:21 -0500

In ROS1, you could inline your yaml file in the launch file with the <rosparam> tag as described here.

Example:

<rosparam>
  a: 1
  b: 2
</rosparam>

Is this format supported in ROS2?

From the migration guide, it seems <rosparam> is replaced with <param from> which only supports taking in a yaml file

Additionally, how do I do substitution akin to the following

<rosparam param="whitelist" subst_value="True">$(arg whitelist)</rosparam>

using the new ROS2 xml syntax?

edit retag flag offensive close merge delete

Comments

The second question has been asked here: https://answers.ros.org/question/3486...

Rufus gravatar image Rufus  ( 2021-04-22 02:11:12 -0500 )edit