Figuring out the power of a YAML file.
I have no prior experience in writing a YAML file. I want to know something related to it's capability.
- Suppose in move_base.launch file, I have written something which launch mux.yaml ( http://wiki.ros.org/yocs_cmd_vel_mux ). Which look like below:
START
subscribers:
- name: "Teleoperation"
topic: "input/teleop"
timeout: 1.0
priority: 7
- name: "Autonomouse Navigation"
topic: "input/move_base"
timeout: 2.0
priority: 4
END
Scenario:1
Suppose,* I don't want explicit number in the priority field i.e 7/4* instead I need to load this value from a text file. So, I want priority to be a variable.
Scenario 2
Let's hope that above scenario is possible. Now suddenly the text file changes; which in turn changes the yaml file as well. Will ROS is able to catch the dynamic behavior of the yaml file and reflect the same?
Can you just tell me how to achieve above situations and any good reference for writing YAML files?
Thanks in advances for your valuable suggestions...