How to write and parse "yaml" file for ROS?
Hello all,
My goal is to subscribe to an "unknown" number of topics. I want to do the next algorithm:
- Create a "yaml" file for ROS, where all my topics are listed.
- Extract it´s data as a string.
- Parse the data, according to which I will know the number and the names of the topics to which I want to subscribe.
- Subscribe in a loop to all of them.
The problem is that I have never written a "yaml" file, and the explanations in the Wikipedia page are not good for ROS. I would also be happy to know what is the best way to "parse" the info in my code (C).
Thank you for your help, Felix.