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

Fixing translation averaging for the panorama case #706

Merged
merged 3 commits into from
Mar 6, 2021

Conversation

akshay-krishnan
Copy link
Contributor

When the translation recovery class was used with unit translations that are all zero (all cameras at the same point), it would cause a segmentation fault.
This PR adds a unit test for this case and fixes the segmentation fault.

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.

Approved, but I'd like to know what the underlying GTSAM bug is that threw a segfault :-) We should fix that with an exception.

@dellaert
Copy link
Member

dellaert commented Mar 5, 2021

Also, CI does not pass?

@johnwlambert
Copy link
Contributor

Also, CI does not pass?

Seems to be a homebrew issue, Fan suggested a fix and I put it in a different PR

@akshay-krishnan
Copy link
Contributor Author

Approved, but I'd like to know what the underlying GTSAM bug is that threw a segfault :-) We should fix that with an exception.

I believe the segfault was in TranslationRecovery::addPrior, this line specifically. Using the first edge in the graph when it is empty.

@dellaert
Copy link
Member

dellaert commented Mar 6, 2021

Ah, so it was your code, not GTSAM :-)

@johnwlambert
Copy link
Contributor

@akshay-krishnan can you pull in develop?

@akshay-krishnan akshay-krishnan merged commit 7f06add into develop Mar 6, 2021
@dellaert dellaert deleted the fix/translation-averaging-panorama branch December 29, 2021 00:22
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.

3 participants