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 boost::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 = boost::none) const override;
107 
109  virtual boost::shared_ptr<ManifoldPreintegration> clone() const {
110  return boost::shared_ptr<ManifoldPreintegration>();
111  }
112 
114 
115 private:
117  friend class boost::serialization::access;
118  template<class ARCHIVE>
119  void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
120  namespace bs = ::boost::serialization;
121  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(PreintegrationBase);
122  ar & BOOST_SERIALIZATION_NVP(deltaXij_);
123  ar & BOOST_SERIALIZATION_NVP(delRdelBiasOmega_);
124  ar & BOOST_SERIALIZATION_NVP(delPdelBiasAcc_);
125  ar & BOOST_SERIALIZATION_NVP(delPdelBiasOmega_);
126  ar & BOOST_SERIALIZATION_NVP(delVdelBiasAcc_);
127  ar & BOOST_SERIALIZATION_NVP(delVdelBiasOmega_);
128  }
129 };
130 
131 }
def update(text)
Definition: relicense.py:46
Eigen::Vector3d Vector3
Definition: Vector.h:43
Matrix3 delPdelBiasAcc_
Jacobian of preintegrated position w.r.t. acceleration bias.
Matrix3 delRdelBiasOmega_
Jacobian of preintegrated rotation w.r.t. angular rate bias.
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
Matrix3 delPdelBiasOmega_
Jacobian of preintegrated position w.r.t. angular rate bias.
Matrix3 delVdelBiasOmega_
Jacobian of preintegrated velocity w.r.t. angular rate bias.
const double dt
NavState deltaXij() const override
Vector3 deltaPij() const override
ManifoldPreintegration()
Default constructor for serialization.
Matrix3 delVdelBiasAcc_
Jacobian of preintegrated velocity w.r.t. acceleration bias.
Vector3 deltaVij() const override
static const Vector3 measuredAcc
virtual boost::shared_ptr< ManifoldPreintegration > clone() const
Matrix< Scalar, Dynamic, Dynamic > C
Definition: bench_gemm.cpp:37
traits
Definition: chartTesting.h:28
const Velocity3 & velocity(OptionalJacobian< 3, 9 > H=boost::none) const
Definition: NavState.cpp:64
static const Vector3 measuredOmega(w, 0, 0)
const Point3 & position(OptionalJacobian< 3, 9 > H=boost::none) const
Definition: NavState.cpp:57
float * p
void serialize(ARCHIVE &ar, const unsigned int)
const G double tol
Definition: Group.h:83
const Rot3 & attitude(OptionalJacobian< 3, 9 > H=boost::none) const
Definition: NavState.cpp:50


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:35