[ros2] how to pass commandline arguments to launch files
I want to do something like:
$ ros2 launch foo bar.launch.py arg_name:=arg_value
How do I get and use arg_value
inside the launch file? I cannot find any documentation for how to do this. Seems similar to this question: https://answers.ros.org/question/3725...
To be clear, I do not want to set a node's parameter value. I just want to pass in a value for use inside the launch file. I'm looking for the functionality that the <arg>
tag provides in ROS 1 xml launch files: http://wiki.ros.org/roslaunch/XML/arg