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

Visualizations don't display properly when coordinates are large #1012

Open
jlack1987 opened this issue Jul 13, 2023 · 2 comments
Open

Visualizations don't display properly when coordinates are large #1012

jlack1987 opened this issue Jul 13, 2023 · 2 comments
Labels
backlog help wanted Extra attention is needed

Comments

@jlack1987
Copy link

This is something that was in the ros1 version and is still an issue today. Can see the ros1 issue here. Our use case is we convert from map coordinates(lat/long) to local(UTM) and the x/y position coordinates of the system are large, a few hundred thousand to a few million iirc. Things with coordinates of this size are not rendered properly.

@mjcarroll
Copy link
Member

I think that the underlying implementation issues are still the same. Floating point numbers get less uniform the further away from 0 that you are.

The full solution would probably require switching to doubles in many places in the code base, which is (guessing) a substantial amount of work, potentially with performance trade offs.

One option would be to add a local offset to the UTM so that your coordinates are closer to zero.

Alternatively, if you are just looking for a local cartesian coordinate system, then using the transforms that you find in the MATLAB/NavPy lla2ned function should suffice. This should be sufficient for relatively small working areas.

@jlack1987
Copy link
Author

Yeah I understand the work arounds. I don't have any familiarity with rviz code or even worse ogre3d code, just wanted to report the bug with the hope that one of the devs would attempt to fix at some point

@clalancette clalancette added help wanted Extra attention is needed backlog labels Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants