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

Primitive markers and GEOGRAPHIC coordinate system #722

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

Primitive markers and GEOGRAPHIC coordinate system #722

aharmat opened this issue Nov 25, 2022 · 0 comments

Comments

@aharmat
Copy link

aharmat commented Nov 25, 2022

I'm having a problem rendering primitive markers (e.g. circles) using the GEOGRAPHIC coordinate system. Here is an example:
Screenshot from 2022-11-14 11-25-47

The yellow robot moved in a smooth manner, but the circle markers showing the recent trajectory are anything but smooth. I tracked the root cause down to the fact that the marker's center field is encoded as a float (https://github.com/aurora-opensource/xviz/blob/master/xviz/v2/primitives.proto#L31), which causes the visible quantization artifacts due to the rounding of latitude and longitude coordinates.

If I manually change the center field to double, the problem is resolved. However, I'm guessing that I'm not the first person to encounter this, so I was wondering: What is the right approach for plotting primitive markers in a map view in streetscape? I tried to use the IDENTITY coordinate frame for this and thought I had success, but when comparing otherwise equivalent entities plotted in the GEOGRAPHIC and IDENTITY coordinate frames, there was a noticable discrepancy (see aurora-opensource/streetscape.gl#564).

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