-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fix spherical coordinates FromLocal calls #428
Conversation
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
@M1chaelM , |
@caguero I checked out the code on my local installation and all is working correctly in both the stationkeeping and wildlife transforms for noetic - just waiting on the docker fix. I am having trouble getting anything to run in the melodic docker image so will have to retest later. |
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
I just updated the code. Is that what you're thinking? |
Yes, that's what I was thinking, or we can even simplify further (stationkeeping example):
Maybe it would be easiest to use GLOBAL for all versions for now, until Michael has time to update the docker image? |
Signed-off-by: Carlos Agüero <[email protected]>
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.
Checked both wildlife and stationkeeping tasks - spherical coordinates are correct in both. Good to merge!
See issue #420 and pull request #421 where there's a detailed conversation.
As described in this pull request, the
*FromLocal*()
functions contain a bug that has been fixed in Ignition Math. This patch instantiates a new ignition::math::SphericalCoordinates member variable in the base scoring plugin to be used for any derived scoring plugins.Note that even in the updated version we still can't use
*FromLocal*()
directly, as it contains the version with the issue to preserve old behavior. In order to use the corrected version we need to callPositionTransform()
directly.