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

Is there a convention where to put resource files inside a package?

asked 2017-04-24 05:24:20 -0500

nbro gravatar image

updated 2017-04-24 05:25:26 -0500

I created a package and I would like to read and write to files (i.e. .bag, .yml, etc files).

Is there a convention where to put these files? Should the resource files be put under the modules specific to the specific computations, or a package should just have one folder dedicated to all resources?

This may depend, I fear, on the type of resource, i.e. if it's a resource that should be accessed by all nodes (and computations, scripts, etc, in general) or just by a specific node, but I would like to hear your wise suggestions.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-22 09:34:00 -0500

Droter gravatar image

Hi nbro,

In the Package Organization from the ROS Best Practices It discusses options for when to combine or separate items in a package.

Example package convention:

These also may be helpful: REP-128 Recommended layout of a workspace: REP-127 Recommended Package Manifest format:


edit flag offensive delete link more

Question Tools



Asked: 2017-04-24 05:24:20 -0500

Seen: 758 times

Last updated: Jun 22 '18