How to launch node if param equals true?
How would I start a node if a parameter equalled a given value? I'm thinking something like this pseudo code:
<launch>
if my_param == true: // PSEUDO CODE - How to properly implement this logic?
<node name="my_node" pkg="my_package" type="my_node" output="screen"/>
</launch>
Also, how would I do this using rosrun
from the command line?