Use macros with rosparam
I have a software that can controls multiple similar robots. I would like to have a minimal configuration file for each robots, containing for example its size, its maximum speed, etc... And use them to populate the rest of the parameter server.
For instance, a parameter "half_length" that is equal to the half of the length to the robot. So I would want something a-la xacro, but for rosparam :
robot_a.yaml:
length: 0.8
width: 0.4
robot_b.yaml:
length: 1.0
width: 0.2
global_config.yaml:
half_length: {length / 2.0}
How can I achieve this? If I use xacro, I end up with a big XML file in a single param, which is not what I want.