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

Where should I put configuration files?

asked 2014-03-22 11:11:51 -0500

Boris_il_forte gravatar image

updated 2014-03-23 05:48:00 -0500

Where should I put node configuration files? (e.g. a knowledge base) What is the "ROS way" to access these files?

I would like to have a node that reads some files in a folder at startup... files that can be modifyed by users.

or there is a better "ROS way" to do that sort of things?

edit: I'm only interested in wich is the best location where I can put configuration files and wich is the best way to get the path to these files...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-03-23 07:03:40 -0500

demmeln gravatar image

Usually what works well is providing the file URI as a ROS parameter that you can set via the rosrun command line or in a launch file. You can pair this with putting the actual files in a foo_bringup or foo_config package, which contains the config (and launch) files. In the launch files you can then use the <param name='config_folder' value='$(find_package foo_bringup)/config' /> syntax.

There was a question a while back about downloading additional files for a package (and then finding these from within a node), which might contain useful information for you: http://answers.ros.org/question/10976...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-03-22 11:11:51 -0500

Seen: 2,888 times

Last updated: Mar 23 '14