Generating a default parameter file (.yaml) for a given ROS package
Hi everyone,
Is there an easy way to automatically generate a default parameter file (.yaml) for a given ROS package using the default parameter values and the descriptions of the parameters? I was thinking this could be done for instance by parsing the text from the "parameters" section of the wiki page of the package, or maybe even directly from the source code.
Of course creating a file to set the parameters to their default values is redundant, but the generated file could be useful as a starting point for your own configuration, instead of going back and forth between your text editor and the wiki page to add parameters one by one and check their descriptions/default values.
For instance for the amcl package (see section 3.1.5 "Parameters" of the wiki page http://wiki.ros.org/amcl ) the generated amcl_config.yaml file would be something like:
min_particles: 100 #Minimum allowed number of particles.
max_particles: 5000 #Maximum allowed number of particles.
kld_err: 0.01 #Maximum error between the true distribution and the estimated distribution.
...
Am I missing something? Would it be practical/useful to add a "download default .yaml" link on the wiki pages?
Thanks!