Skip to content
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

Discrepancy between IDENTITY and GEOGRAPHIC coordinate systems #564

Open
aharmat opened this issue Nov 25, 2022 · 0 comments
Open

Discrepancy between IDENTITY and GEOGRAPHIC coordinate systems #564

aharmat opened this issue Nov 25, 2022 · 0 comments

Comments

@aharmat
Copy link

aharmat commented Nov 25, 2022

I'm visualizing the pose of a vehicle and some circle markers near the vehicle using XViz and Streetscape, and am having problems with where these entities are drawn on a 3D map when using the IDENTITY coordinate system. The following illustrates the problem:
image

The yellow box is the vehicle, and the purple circle markers lie on the vehicle's recent trajectory. These are all drawn in the IDENTITY coordinate system, by setting a fixed map_origin on the /vehicle_pose stream, and then setting the position of the vehicle and circles as East and North meters from the map origin.

The light blue circle markers are based on the exact same data as the purple markers, except they have been converted to GEOGRAPHIC coordinates using GeographicLib::LocalCartesian, using the exact same map origin as above, before being sent out by XViz.

Clearly, there is a big difference between the light blue and purple circle markers; the light blue markers are correct, as corroborated by other geographic data, such as the path markers we have labeled beforehand (dark blue lines), and our personal knowledge of where the vehicle was located. This example is ~2 Km from the map origin; at closer distances, the error between the GEOGRAPHIC and IDENTITY markers is less pronounced.

My questions are:

  1. Am I using the IDENTITY coordinate system correctly?
  2. If so, what is causing the big discrepancy between the markers rendered in the two coordinate systems? My hunch is that it has something to do with Web Mercator projection, but I'm stumped beyond this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant