get roslaunch arg value from a file?
I have a system with multiple homogeneous robots with an id assigned to each based on the MAC address of it's ethernet interface. I would like to know the best way for my main launch file to get the robot's id from a look up table and use it to set an id parameter (so the robot knows who it is) and include another launch file specific to that robot (i.e., for setting parameters that may differ between robots). Basically I want to get the robot's id as an arg variable in the launch file.
I'm currently setting an environment variable at login inside .bashrc and reading that it, but it would be nice if there was a solution that was more self-contained to my code repository.
Or maybe there is a better way to do what I'm am trying to accomplish?