ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Generating a default parameter file (.yaml) for a given ROS package

asked 2014-06-24 01:31:10 -0500

al-dev gravatar image

updated 2014-06-24 01:36:38 -0500

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-06-24 02:11:24 -0500

tfoote gravatar image

There is not enough structure to automatically generate that sort of file.

edit flag offensive delete link more

Comments

Ok, too bad. Thanks.

al-dev gravatar image al-dev  ( 2014-06-24 03:17:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-06-24 01:31:10 -0500

Seen: 517 times

Last updated: Jun 24 '14