-
Notifications
You must be signed in to change notification settings - Fork 138
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
Choose collection based on environment variable #72
Conversation
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@j-rivero , I think this will break blooming Blueprint-compatible packages unless we expose the Ignition version to |
If I'm not wrong, the rosdep keys are resolved at the time of running bloom which usually happens in the developer local system. We need to integrate the |
If
|
That error is coming in the CMake level, not the package level. The CMake code is not aware of the new env var and will always try Citadel first. Maybe we should change that 💡 The way I tested this PR with colcon was:
If you have blueprint dependencies in the workspace and
If the variable is anything other than blueprint, the command won't show anything. You can also try the other way around in a citadel workspace. |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Code looks good, compilation against Blueprint and Citadel works as expected and a quick smoke test seems to be able to load things in memory. Nice work. |
Since #48, we support both Blueprint and Citadel at the CMake level, but
package.xml
has only been supporting Citadel.Then on #71, a couple of package-level dependencies were reverted to Blueprint to get a release out.
This pull request leverages the
condition
(see REP 149) argument to support both collections based on theIGNITION_VERSION
environment variable, defaulting to Citadel when the variable is not present.