-
Notifications
You must be signed in to change notification settings - Fork 767
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
Conversation
and FromPose3 in EssentialMatrix
access them in Python
There was a problem hiding this 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.
gtsam/geometry/geometry.i
Outdated
@@ -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; |
There was a problem hiding this comment.
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/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; |
There was a problem hiding this comment.
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.
python/gtsam/preamble/sfm.h
Outdated
|
||
PYBIND11_MAKE_OPAQUE( | ||
std::vector<gtsam::SfmCamera>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newline
Next goal is to add the SfM Example to the GTSAM Examples.