question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3d panel has precision issues when robot is very far from root transform

See original GitHub issue

Description The 3d panel gets hilariously messed up if the robot is very far (> 1000 km) from the root transform, likely due to floating point math.

  • Version: v0.16
  • OS: Linux

Steps To Reproduce

Example bag: bug.bag.zip Created using this script.

In this bag, base_link is 5000 km from map. The marker moves away from base_link at 1m/s. Marker renders pretty well when base_link is under 100km from map, but starts getting super crazy above 5000 km, and is unviewable above 10,000km.

Expected Behavior Nice buttery-smooth animation of the marker moving across the screen.

Actual Behavior

The marker animation is messed up, and even moving the camera around results in strange animation:

https://user-images.githubusercontent.com/637671/131586680-b889ff1b-7035-4f17-ad80-7b3533850dd9.mp4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amacneilcommented, Sep 9, 2021

Also noting that the best workaround for now is simply to use a “site” frame, and delete any transforms to a “map” or “world” frame from your bag. Foxglove currently always uses the topmost (root) transform in the bag for calculations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors of distance in transformation matrix. | Download Scientific ...
This paper describes our work in developing a 3D robotic mapping system composed by an experimental mobile platform equipped with a rotating laser...
Read more >
Floating Point Errors and Large Scale Worlds - Unity Forum
The hitPosition won't be very accurate or if you do a Transform.TransformPoint it will just suffer or augment the precision issue.
Read more >
Untitled - MDPI
that inter-distance measurements between markers have extensively been used as the accuracy and precision measurements. Vicon dynamic performance evaluation ...
Read more >
High precision and efficiency robotic milling of complex parts
In recent years, many scholars have studied the problems existing in the applications of robotic milling, and lots of results have been made...
Read more >
PROBABILISTIC ROBOTICS
Model errors are a source of uncertainty that has ... Finally, we notice that it is perfectly fine to condition any of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found