ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You can include args with defaults in your launch file and use them as params when launching your node. If you want to change these defaults, you can provide specific args from command line while launching.

<launch>

  <!-- Args -->
  <arg name="some_arg" default="true" doc="description of some arg>

  <include file="$(find some_package)/launch/package.launch">
    <param name="some/var" value="$(arg gps)"/>
  </include>

</launch>

If you want to change the value of some_arg at launch time: $ roslaunch some_package some_arg:=false

You can include args with defaults in your launch file and use them as params when launching your node. If you want to change these defaults, you can provide specific args from command line while launching.

<launch>

  <!-- Args -->
  <arg name="some_arg" default="true" doc="description of some arg>

  <include file="$(find some_package)/launch/package.launch">
    <param name="some/var" value="$(arg gps)"/>
some_arg)"/>
  </include>

</launch>

If you want to change the value of some_arg at launch time: $ roslaunch some_package some_arg:=false