ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi, I think the easiest way is by defining an arg. Something like:
<arg name="var"/>
and then grouping the nodes to start. Like:
<launch>
2 | No.2 Revision |
Hi, I think the easiest way is by defining an arg. Something like:
<arg name="var"/>
and then grouping the nodes to start. Like:start if the argument of var is true. Your launch file should look like:
<launch>
<arg name="var"/>
<group if="$(arg var)">
...nodes to start...
</group>
</launch>
<launch>You can then start the nodes from the terminal with:
roslaunch you_package your_node var:=true
Let me know if that helps
3 | No.3 Revision |
Hi, I think the easiest way is by defining an arg. Something like:
<arg name="var"/>
and then grouping the nodes to start if the argument of var is true. Your launch file should look like:
<launch>
<arg name="var"/>
<group if="$(arg var)">
...nodes to start...
</group>
</launch>
You can then start the nodes from the terminal with:
roslaunch you_package your_node launch_file var:=true
Let me know if that helps