ManifoldPreintegration.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
22 #pragma once
23 
26 
27 namespace gtsam {
28 
33 class GTSAM_EXPORT ManifoldPreintegration : public PreintegrationBase {
34  protected:
35 
43  Matrix3 delPdelBiasAcc_;
45  Matrix3 delVdelBiasAcc_;
47 
50  resetIntegration();
51  }
52 
53 public:
56 
62  ManifoldPreintegration(const std::shared_ptr<Params>& p,
63  const imuBias::ConstantBias& biasHat = imuBias::ConstantBias());
64 
66 
70  void resetIntegration() override;
71 
73 
76  NavState deltaXij() const override { return deltaXij_; }
77  Rot3 deltaRij() const override { return deltaXij_.attitude(); }
78  Vector3 deltaPij() const override { return deltaXij_.position(); }
79  Vector3 deltaVij() const override { return deltaXij_.velocity(); }
80 
81  Matrix3 delRdelBiasOmega() const { return delRdelBiasOmega_; }
82  Matrix3 delPdelBiasAcc() const { return delPdelBiasAcc_; }
83  Matrix3 delPdelBiasOmega() const { return delPdelBiasOmega_; }
84  Matrix3 delVdelBiasAcc() const { return delVdelBiasAcc_; }
85  Matrix3 delVdelBiasOmega() const { return delVdelBiasOmega_; }
86 
89  bool equals(const ManifoldPreintegration& other, double tol) const;
91 
94 
99  void update(const Vector3& measuredAcc, const Vector3& measuredOmega, const double dt,
100  Matrix9* A, Matrix93* B, Matrix93* C) override;
101 
105  Vector9 biasCorrectedDelta(const imuBias::ConstantBias& bias_i,
106  OptionalJacobian<9, 6> H = {}) const override;
107 
109  virtual std::shared_ptr<ManifoldPreintegration> clone() const {
110  return std::shared_ptr<ManifoldPreintegration>();
111  }
112 
114 
115 private:
116 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
117 
118  friend class boost::serialization::access;
119  template<class ARCHIVE>
120  void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
121  namespace bs = ::boost::serialization;
122  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(PreintegrationBase);
123  ar & BOOST_SERIALIZATION_NVP(deltaXij_);
124  ar & BOOST_SERIALIZATION_NVP(delRdelBiasOmega_);
125  ar & BOOST_SERIALIZATION_NVP(delPdelBiasAcc_);
126  ar & BOOST_SERIALIZATION_NVP(delPdelBiasOmega_);
127  ar & BOOST_SERIALIZATION_NVP(delVdelBiasAcc_);
128  ar & BOOST_SERIALIZATION_NVP(delVdelBiasOmega_);
129  }
130 #endif
131 };
132 
133 }
H
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
Definition: gnuplot_common_settings.hh:74
gtsam::ManifoldPreintegration::delRdelBiasOmega_
Matrix3 delRdelBiasOmega_
Jacobian of preintegrated rotation w.r.t. angular rate bias.
Definition: ManifoldPreintegration.h:42
relicense.update
def update(text)
Definition: relicense.py:46
PreintegrationBase.h
gtsam::ManifoldPreintegration::delVdelBiasAcc
Matrix3 delVdelBiasAcc() const
Definition: ManifoldPreintegration.h:84
gtsam::ManifoldPreintegration::deltaRij
Rot3 deltaRij() const override
Definition: ManifoldPreintegration.h:77
B
Definition: test_numpy_dtypes.cpp:299
dt
const double dt
Definition: testVelocityConstraint.cpp:15
gtsam::PreintegrationBase
Definition: PreintegrationBase.h:41
gtsam::ManifoldPreintegration::ManifoldPreintegration
ManifoldPreintegration()
Default constructor for serialization.
Definition: ManifoldPreintegration.h:49
gtsam::NavState
Definition: NavState.h:38
gtsam::Vector3
Eigen::Vector3d Vector3
Definition: Vector.h:44
gtsam::ManifoldPreintegration::delPdelBiasOmega_
Matrix3 delPdelBiasOmega_
Jacobian of preintegrated position w.r.t. angular rate bias.
Definition: ManifoldPreintegration.h:44
gtsam::ManifoldPreintegration::deltaXij_
NavState deltaXij_
Definition: ManifoldPreintegration.h:41
A
Definition: test_numpy_dtypes.cpp:298
biased_x_rotation::measuredOmega
const Vector3 measuredOmega
Definition: testPreintegratedRotation.cpp:35
gtsam::NavState::attitude
const Rot3 & attitude(OptionalJacobian< 3, 9 > H={}) const
Definition: NavState.cpp:48
gtsam::Rot3
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
Definition: Rot3.h:58
NavState.h
Navigation state composing of attitude, position, and velocity.
gtsam::ManifoldPreintegration::delPdelBiasOmega
Matrix3 delPdelBiasOmega() const
Definition: ManifoldPreintegration.h:83
gtsam::ManifoldPreintegration::deltaVij
Vector3 deltaVij() const override
Definition: ManifoldPreintegration.h:79
gtsam::ManifoldPreintegration::delRdelBiasOmega
Matrix3 delRdelBiasOmega() const
Definition: ManifoldPreintegration.h:81
gtsam::ManifoldPreintegration::delVdelBiasOmega
Matrix3 delVdelBiasOmega() const
Definition: ManifoldPreintegration.h:85
gtsam::ManifoldPreintegration::delPdelBiasAcc
Matrix3 delPdelBiasAcc() const
Definition: ManifoldPreintegration.h:82
gtsam::equals
Definition: Testable.h:112
gtsam::ManifoldPreintegration
Definition: ManifoldPreintegration.h:33
gtsam::imuBias::ConstantBias
Definition: ImuBias.h:32
C
Matrix< Scalar, Dynamic, Dynamic > C
Definition: bench_gemm.cpp:50
gtsam
traits
Definition: SFMdata.h:40
gtsam::OptionalJacobian
Definition: OptionalJacobian.h:38
gtsam::ManifoldPreintegration::clone
virtual std::shared_ptr< ManifoldPreintegration > clone() const
Definition: ManifoldPreintegration.h:109
gtsam::NavState::position
const Point3 & position(OptionalJacobian< 3, 9 > H={}) const
Definition: NavState.cpp:55
gtsam::ManifoldPreintegration::delPdelBiasAcc_
Matrix3 delPdelBiasAcc_
Jacobian of preintegrated position w.r.t. acceleration bias.
Definition: ManifoldPreintegration.h:43
p
float * p
Definition: Tutorial_Map_using.cpp:9
gtsam::ManifoldPreintegration::delVdelBiasOmega_
Matrix3 delVdelBiasOmega_
Jacobian of preintegrated velocity w.r.t. angular rate bias.
Definition: ManifoldPreintegration.h:46
gtsam::NavState::velocity
const Velocity3 & velocity(OptionalJacobian< 3, 9 > H={}) const
Definition: NavState.cpp:62
gtsam::tol
const G double tol
Definition: Group.h:79
common::measuredAcc
static const Vector3 measuredAcc
Definition: testImuFactor.cpp:181
Eigen::Matrix< double, 9, 9 >
gtsam::ManifoldPreintegration::deltaPij
Vector3 deltaPij() const override
Definition: ManifoldPreintegration.h:78
gtsam::ManifoldPreintegration::delVdelBiasAcc_
Matrix3 delVdelBiasAcc_
Jacobian of preintegrated velocity w.r.t. acceleration bias.
Definition: ManifoldPreintegration.h:45
pybind_wrapper_test_script.other
other
Definition: pybind_wrapper_test_script.py:42
gtsam::ManifoldPreintegration::deltaXij
NavState deltaXij() const override
Definition: ManifoldPreintegration.h:76


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:57