-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add substitution for finding package share directory #57
Conversation
Expose FindPackageShare as 'find-pkg' and FindPackage as 'find-pkg-root'. The rationale is that getting the share directory is the more common use-case (e.g. including launch files). This turns <include file="$(find-pkg foo)/share/foo/launch/foo.launch.xml"> into <include file="$(find-pkg foo)/launch/foo.launch.xml"> Signed-off-by: Jacob Perron <jacob@openrobotics.org>
I don't think "root" is a good term here. The term used everywhere else for this basepath is (install) "prefix". I would rather prefer both substitutions to be explicit ( |
👍 for I kept |
Design doc PR: https://github.com/ros2/design/pull/254/files |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
FindPackage is now an abstract class that requires subclasses to implement a 'find' method. FindPackagePrefix is the subclass that finds the package prefix. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending green CI
Expose FindPackageShare as 'find-pkg' and FindPackage as 'find-pkg-root'.
The rationale is that getting the share directory is the more common use-case (e.g. including launch files).
This turns
into