ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A workaround that can be used in the XML format is the tag <let>
. This tag works in galactic with the argument "if". Your launchfile would then look like this:
<let name="x" value="true" if="$(var condition)"/>
<let name="x" value="false" unless="$(var condition)"/>
<node .......>
<param name="x" value="$(var x)"/>
</node>
It uses a little bit more lines but I think it's a useful method if you don't want to rewrite all of the file in Python