makefile get args code example
Example 1: ros launch file with args
<launch>
<node pkg="my_package" type="my_node" name="node_instance" args="-arg1 -arg2" />
<arg name="argument" />
<node pkg="my_package" type="my_node" name="node_instance" output="screen" args="$(arg argument)"/>
</launch>
roslaunch my_package run.launch argument:={{parameter_value}}
Example 2: 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