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

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

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

nbro gravatar image

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

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
0

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

Droter gravatar image

Hi nbro,

In the Package Organization from the ROS Best Practices https://github.com/ethz-asl/ros_best_... It discusses options for when to combine or separate items in a package.

Example package convention: https://github.com/ethz-asl/ros_best_...

These also may be helpful: REP-128 Recommended layout of a workspace: http://www.ros.org/reps/rep-0128.html... REP-127 Recommended Package Manifest format: http://www.ros.org/reps/rep-0127.html...

Matt

edit flag offensive delete link more

Question Tools

2 followers

Stats

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

Seen: 862 times

Last updated: Jun 22 '18