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

Rule/practice for the location of storing config files

asked 2013-01-31 08:24:40 -0600

130s gravatar image

updated 2013-03-11 11:32:40 -0600

On Ubuntu Quantal with Groovy on my home dir, I see hidden dirs:

.ros  (might be used for storing logs only?) (*1)

Also, there could be pkgs that store their config in arbitrary location. For example rqt_gui stores its setting in ~/.config/, which I had a hard time in finding by file search (grep, find) and ended up looking into its code (this is not documented either).

Is there any good rule / practice to standardize the config/setting files' location ROS-wide?

*1...3/4/2013 turned out false. See wiki

Update 3/11/2013 For rqt_gui specifically, it will keep using ~/.config folder since it is/will be not fully ROS-dependent. See discussion here.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-03-04 11:03:36 -0600

joq gravatar image

The normal ROS practice is to use some subdirectory of $ROS_HOME for storing data generated from ROS nodes.

If $ROS_HOME is not defined, use ~/.ros as a default.

edit flag offensive delete link more


I see also it's documented here.

130s gravatar image 130s  ( 2013-03-04 18:23:58 -0600 )edit

answered 2013-03-04 05:01:19 -0600

Claudio gravatar image

Writing a few packages, I encountered the same problem: where do I save my data?

I used this little trick from stackoverflow to get the user home dir, and then save in my own subfolder, or in an aptly named folder under the .ros folder.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-01-31 08:24:40 -0600

Seen: 790 times

Last updated: Mar 11 '13