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

Added some utilities for better using the SfM parts of GTSAM in Python #1185

Merged
merged 10 commits into from
May 8, 2022

Conversation

ProfFan
Copy link
Collaborator

@ProfFan ProfFan commented May 3, 2022

Next goal is to add the SfM Example to the GTSAM Examples.

@ProfFan ProfFan requested a review from dellaert May 3, 2022 18:00
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.

Awesome!
Fix comments and then merge at will.

@@ -971,6 +1034,12 @@ typedef gtsam::PinholeCamera<gtsam::Cal3Unified> PinholeCameraCal3Unified;
typedef gtsam::PinholeCamera<gtsam::Cal3Bundler> PinholeCameraCal3Bundler;
typedef gtsam::PinholeCamera<gtsam::Cal3Fisheye> PinholeCameraCal3Fisheye;

typedef gtsam::PinholePose<gtsam::Cal3_S2> PinholePoseCal3_S2;
Copy link
Member

Choose a reason for hiding this comment

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

move right after class, same for PinholeCamera

gtsam/linear/linear.i Show resolved Hide resolved
gtsam/sfm/sfm.i Outdated
@@ -34,6 +36,9 @@ class SfmData {
static gtsam::SfmData FromBundlerFile(string filename);
static gtsam::SfmData FromBalFile(string filename);

std::vector<gtsam::SfmTrack> tracks;
Copy link
Member

Choose a reason for hiding this comment

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

Remove this in factor of const & for track and camera.
You can also add const& tracks() and cameras() methods.


PYBIND11_MAKE_OPAQUE(
std::vector<gtsam::SfmCamera>);
Copy link
Member

Choose a reason for hiding this comment

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

missing newline

@ProfFan ProfFan merged commit 63ffeaf into develop May 8, 2022
@ProfFan ProfFan deleted the feature/sfm_utils branch May 8, 2022 06:54
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.

2 participants