Answers for "arg in launch file ros"

1

ros launch file with args

<!-- File name run.launch -->
<launch>
  <node pkg="my_package" type="my_node" name="node_instance" args="-arg1 -arg2" />
  <!-- Option 2 for pass in terminal -->
  <arg name="argument" />
  <node pkg="my_package" type="my_node" name="node_instance" output="screen" args="$(arg argument)"/>
</launch>

<!-- Command line -->
roslaunch my_package run.launch argument:={{parameter_value}}
Posted by: Guest on March-15-2021

Browse Popular Code Answers by Language