-
Notifications
You must be signed in to change notification settings - Fork 49
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
Deprecate LOCAL2 in SphericalCoordinates #451
Conversation
With the introduction of gazebosim/gz-math#616. We will be deprecating `LOCAL2` as a work around in favor or `LOCAL`. As part of this change, its probably a good idea to update `gz-msgs` as well. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
…oordinates enum field. Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
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. Thanks for fixing this. I think we should add a note in the migration file.
|
||
GZ_UTILS_WARN_IGNORE__DEPRECATED_DECLARATION |
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.
This works great!
I was trying to understand how this prevents warnings in gz-msgs, but still gives warnings in downstream libraries when you try to use the LOCAL2
enum, which is what we want. The warning this prevents is the warning emitted by just including msgs/details/spherical_coordinates.pb.h
because that file contains
constexpr SphericalCoordinatesType SphericalCoordinatesType_MAX = LOCAL2;
which is a direct use of the LOCAL2
enum.
when downstream libraries include msgs/spherical_coordinates.pb.h
, they won't get a warning from that. But if they use LOCAL2
directly, a warning is emitted.
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
I've added a migration note in 338b2b8. It would be great if, in a follow-up PR, you can modify it to add more detail and replace the PR link I added. In the mean time, I'll merge this to fix CI on gz-transport. |
🦟 Bug fix
This PR extends PR #450 .
Summary
In this PR, I include #450 to fix all remaining build failures.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.