-
Notifications
You must be signed in to change notification settings - Fork 874
Added AHRSPose3Factor by extending AHRSFactor to enable integration with Pose3 variables. #2297
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
base: develop
Are you sure you want to change the base?
Changes from all commits
898fd9d
a359150
474872a
839aaa8
4987d6b
a637c0c
f8f3455
e1a0306
099cb4c
55286a5
47bb7e6
54b2d6d
d97f23d
287e5b2
a4f9599
1847b39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,153 @@ | ||||||||||
|
|
||||||||||
| /** | ||||||||||
| * @file DepthCamera3.h | ||||||||||
| * @brief Depth Camera. | ||||||||||
| * @author junlinp | ||||||||||
| * @date Nov 9, 2025 | ||||||||||
| */ | ||||||||||
|
|
||||||||||
| #pragma once | ||||||||||
|
|
||||||||||
| #include <iostream> | ||||||||||
| #include <optional> | ||||||||||
| #include <gtsam/base/Vector.h> | ||||||||||
| #include <gtsam/base/Matrix.h> | ||||||||||
| #include <gtsam/geometry/Point2.h> | ||||||||||
| #include <gtsam/geometry/Pose3.h> | ||||||||||
| #include <gtsam/geometry/Point3.h> | ||||||||||
| #include <gtsam/geometry/PinholeCamera.h> | ||||||||||
| #include <gtsam/nonlinear/NonlinearFactor.h> | ||||||||||
|
|
||||||||||
| #if GTSAM_ENABLE_BOOST_SERIALIZATION | ||||||||||
| #include <boost/serialization/nvp.hpp> | ||||||||||
| #endif | ||||||||||
|
|
||||||||||
| namespace gtsam { | ||||||||||
|
|
||||||||||
| /** | ||||||||||
| * A pinhole camera class that has a Pose3 and a Calibration. | ||||||||||
|
||||||||||
| * A pinhole camera class that has a Pose3 and a Calibration. | |
| * A depth camera class that stores a depth measurement, a camera calibration, | |
| * and an optional transform from the body frame to the sensor frame. | |
| * Unlike PinholeCamera, DepthCamera3 does not store a Pose3 as a member. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1312,6 +1312,23 @@ class PinholeCamera { | |||||
| typedef gtsam::PinholeCamera<gtsam::Cal3_S2> PinholeCameraCal3_S2; | ||||||
| typedef gtsam::PinholeCamera<gtsam::Cal3DS2> PinholeCameraCal3DS2; | ||||||
| typedef gtsam::PinholeCamera<gtsam::Cal3Unified> PinholeCameraCal3Unified; | ||||||
|
|
||||||
| #include <gtsam/geometry/DepthCamera3.h> | ||||||
| template<CALIBRATION> | ||||||
| class DepthCamera3 { | ||||||
| DepthCamera3(); | ||||||
| DepthCamera3(const gtsam::Point3& measurement, const CALIBRATION::shared_ptr& k); | ||||||
| DepthCamera3(const gtsam::Point3& measurement, const CALIBRATION::shared_ptr& k, const gtsam::Pose3& body_P_sensor); | ||||||
|
||||||
| DepthCamera3(const gtsam::Point3& measurement, const CALIBRATION::shared_ptr& k, const gtsam::Pose3& body_P_sensor); | |
| DepthCamera3(const gtsam::Point3& measurement, const CALIBRATION::shared_ptr& k, const std::optional<gtsam::Pose3>& body_P_sensor); |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,148 @@ | ||||||
|
|
||||||
| /* | ||||||
| * testDepthFactor.cpp | ||||||
|
||||||
| * testDepthFactor.cpp | |
| * testDepthCamera3.cpp |
Uh oh!
There was an error while loading. Please reload this page.