-
Notifications
You must be signed in to change notification settings - Fork 480
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
Default SphericalCoordinates frame should be East-North-Up (ENU) #2022
Comments
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Fixing the current behaviour in a minor / patch release would break existing code that is compensating for it, which we shouldn't do. But luckily, the compensation just involves a 180 degree heading rotation like this:
|
I'm addressing this issue for |
I find this hard to believe but this still seems to be an issue in both |
OMG lost a few hours debugging this on G11!!! Couldn't there be at least some warning in G11 when user code calls |
This is a bit trick, but doable. Gazebo Classic does not depend on any C++14 feature, but it compiles using the default version of C++ provided by the compiler, that is C++14 at least on GCC since GCC 6 (see https://gcc.gnu.org/gcc-6/changes.html). So we could just use some preprocessor logic to define a macro (for example in gazebo-classic/gazebo/util/system.hh Line 317 in 7ccef40 [[deprecated(message)]] if the code is compiled with C++14, that will end to be defined on any reasonable modern system.
That may be more tricky, I am not sure how we can achieve this. |
Indeed the issue is still there in |
I've just sent a fix for this to gz-math main branch: gazebosim/gz-math#596. |
A proper fix for this issue has landed into Gazebo Ionic: gazebosim/gz-math#616, gazebosim/gz-msgs#450 and gazebosim/gz-sim#2535 . I'll have a look at ways how to backport it into Classic. |
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
The
<spherical_coordinates>
tag in sdformat declares itself to be using an East-North-Up (ENU) coordinate frame in spherical_coordinates.sdf (though rather indirectly, the language there should be clarified).However, the gazebo
SphericalCoordinates
class appears to be using a West-South-Up (WSU) coordinate frame. I've committed a test in 67dde67 (branchspherical_coordinates_enu
) showing the failure.The text was updated successfully, but these errors were encountered: