Repository navigation
Stabilize optimized L-shape rectangles on unseen sides - #346
Open
Zeming-Yuan wants to merge 1 commit into
Open
Zeming-Yuan wants to merge 1 commit into
Zeming-Yuan wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #336
Root Cause
Point-to-edge distances weakly constrain the unseen sides of the rectangle. Small numerical changes can move the fitted center or dimensions while leaving the visible-edge fit nearly unchanged.
Changes
How I checked it works
Verification
The regression failed on the base revision with 0.467514 m of corner movement and passed with the fix. The full suite passed with 204 tests and one CasADi warning.
With
np.random.seed(0)on ARM64, all 28 pairs of independent simulation runs matched exactly in both revisions (0/603 differing rectangles, 0 m maximum corner displacement). In the controlled one-ULP probe, shifts greater than 1 mm dropped from 362/603 to 0/603. The maximum fell from 0.576306 m to 0.000682 m.Images
Controlled one-ULP perturbation
This zoomed comparison shows simulation fit 545, which had the largest corner displacement before the fix. In each panel, the dashed outline comes from deliberately increasing one LiDAR return's x coordinate by one ULP. Both panels use the same scale. The maximum corner displacement for this fit fell from 0.576 m to 0.26 nm.
Final simulation frame before the fix
Final simulation frame after the fix
Book
Section 9.2 is planned. The detector docstring describes the priors.