Is there a deterministic way of loading rosparams from two files using roslaunch?
If I load two different files (config_default.yaml
and config_instance.yaml
) that contain common parameters (with the same key name), which parameters will take precedent? Is this behavior deterministic? Are the files loaded alphabatically such that the config_default.yaml
will always load before config_instance.yaml
?
My goal is to use roslaunch to load parameters from two files and always have the second file override parameters from the first file.
<launch>
<node pkg="test_node" type="test_node" name="test_node" >
<rosparam command="load" file="config_default.yaml" />
<rosparam command="load" file="config_instance.yaml" />
</node>
</launch>
I believe this is a duplicate of #q199608.
Could you please read that Q&A and then either close your own as a duplicate, or clarify what isn't clear?
Edit: I'm also slightly confused as to why you weren't able to find that Q&A, as the title is literally
roslaunch order of rosparams
.#q199608 doesn't mention precedent of params load from two different yaml files. Perhaps that is implicit.
I believe that would be covered by:
and: