What is the difference among arg, param, and rosparam in ROS launch files?
I have been trying to add multiple nodes as well as external launch files into a single launch file. While doing so, I came across three different ways to set variables:
arg
param
rosparam
So, what exactly is the difference among these three? When to use which one? Are there any advantages of one over another in terms of performance, usability, flexibility, or something else?
We're here to help, but all of the concepts you list have quite a bit of documentation on the ROS wiki (in the
roslaunch XML
pages). In addition there are a few ROS Answers Q&As about this as well (searching with Google works pretty well, make sure to appendsite:answers.ros.org
to your query).Could you tell us what you've already found yourself, what you didn't understand and what specifically you'd like to see clarified?