Ask Your Question
7

Rule/practice for the location of storing config files

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

130s gravatar image

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

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

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

Also, there could be pkgs that store their config in arbitrary location. For example rqt_gui stores its setting in ~/.config/ros.org/rqt_gui.ini, 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
1

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

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

Comments

I see also it's documented here.

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 572 times

Last updated: Mar 11 '13