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

Force nonnegative scale for Sim(3) #997

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

johnwlambert
Copy link
Contributor

As discussed in #995, for certain inputs, Similarity3.Align() returns an object with negative scale.

According to my derivation here, based on Zinnser05prip, the correct scale should not need an absolute value cast.

However, this PR adds an absolute value cast on the scale, and we can likely blame numerical instabilities as a reasonable motivation (the negative values I saw were relatively close to zero).

Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks John!

@johnwlambert johnwlambert merged commit 0ba1d3b into develop Dec 30, 2021
@johnwlambert johnwlambert deleted the force-nonnegative-scale-Sim3 branch December 30, 2021 21:08
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

Successfully merging this pull request may close these issues.

Similarity(3) estimation returns a negative scale for some poorly aligned pose graphs
2 participants