How to use eval in ROS2 XML launch file
As a minimal test case I wanted to do string concatenation inside a <let>
tag: <let name="foo" value="$(eval 'a' + '_description')"/>
returns
eval substitution expects 1 argument
Variable evaluation also doesn't work: $(eval var('bar'))
prints
Expecting: {'RPAR', 'SPACE', 'DOLLAR', 'UNQUOTED_RSTRING'}
I assumed that this should be supported, because it says eval
substitutions haven't changed in this official tutorial.