Answers for "makefile get args"

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
1

can makefile commands take parameters

make foo=bar target

#use $(foo) to obtain the value of the foo parameter (leave quotes out for string values)
#target is the command name
Posted by: Guest on February-07-2021

Browse Popular Code Answers by Language