Is there a convention where to put resource files inside a package?
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.
Asked by nbro on 2017-04-24 05:24:20 UTC
Answers
Hi nbro,
In the Package Organization from the ROS Best Practices https://github.com/ethz-asl/ros_best_practices/wiki#package-organization It discusses options for when to combine or separate items in a package.
Example package convention: https://github.com/ethz-asl/ros_best_practices/wiki#filefolder-structure-for-packages
These also may be helpful: REP-128 Recommended layout of a workspace: http://www.ros.org/reps/rep-0128.html#recommended-layout REP-127 Recommended Package Manifest format: http://www.ros.org/reps/rep-0127.html#example
Matt
Asked by Droter on 2018-06-22 09:34:00 UTC
Comments