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

Add python unit test for triangulation with robust noise model #1031

Merged

Conversation

johnwlambert
Copy link
Contributor

@johnwlambert johnwlambert commented Jan 12, 2022

Adds a python unit test equivalent for the C++ tests in @lucacarlone's very nice robust Triangulation PR.

CameraSetCal3Bundler, PinholeCameraCal3_S2,
PinholeCameraCal3Bundler, Point2Vector, Point3, Pose3,
Pose3Vector, Rot3)
from gtsam import (
Copy link
Member

Choose a reason for hiding this comment

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

Are you using pep8 with Google style? You should :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dellaert Hi Frank, I just reformatted with yapf --style google. I don't see a match though, with the prior formatting. Do we have a CONTRIBUTING.md with the current official Python formatting guidelines?

PinholeCameraCal3_S2,
(K1, K2),
camera_set=CameraSetCal3_S2)
measurements, cameras = self.generate_measurements(
Copy link
Member

Choose a reason for hiding this comment

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

Only reformat what you add in a PR

@dellaert
Copy link
Member

CI is failing

@johnwlambert
Copy link
Contributor Author

CI is failing

passing now : - )

@johnwlambert johnwlambert merged commit aef2a39 into feature/robustTriangulation Jan 13, 2022
@johnwlambert johnwlambert deleted the add-python-unit-test-robust-noise branch January 13, 2022 04:27
@lucacarlone
Copy link
Contributor

@johnwlambert looks great! approving post mortem :-)

@johnwlambert
Copy link
Contributor Author

@johnwlambert looks great! approving post mortem :-)

thanks!

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.

4 participants