ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It cannot work as is because parsing is not yet done when the description is generated.
You can split your talker_node in 2 nodes:
condition=launch.conditions.IfCondition(launch.LaunchConfiguration("debug"))
having the additional debug_prefixcondition=launch.conditions.UnlessCondition(launch.LaunchConfiguration("debug"))
having no additional prefixThis is equivalent to the <node if="$(arg debug) .../>"
and <node unless="$(arg debug) .../>"
existing with the XML syntax of launch files.