ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't think the roslaunch XML syntax supports more complex comparisons.
Instead, you could conditionally include a launch file or configuration file with the same name as your mode:
<arg name="mode" default="simulate"/>
<include file="$(find my_package)/launch/modes/$(arg mode).launch"/>
<rosparam command="load" file="$(find my_package)/config/modes/$(arg mode).yaml"/>