ExtendedKalmanFilter.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 
19 // \callgraph
20 #pragma once
21 
24 
25 namespace gtsam {
26 
44 template <class VALUE>
46  // Check that VALUE type is a testable Manifold
48  GTSAM_CONCEPT_ASSERT(IsManifold<VALUE>);
49 
50  public:
51  typedef std::shared_ptr<ExtendedKalmanFilter<VALUE> > shared_ptr;
52  typedef VALUE T;
53 
54  protected:
55  T x_; // linearization point
56  JacobianFactor::shared_ptr priorFactor_; // Gaussian density on x_
57 
58  static T solve_(const GaussianFactorGraph& linearFactorGraph, const Values& linearizationPoints,
59  Key x, JacobianFactor::shared_ptr* newPrior);
60 
61  public:
64 
65  ExtendedKalmanFilter(Key key_initial, T x_initial, noiseModel::Gaussian::shared_ptr P_initial);
66 
70 
72  void print(const std::string& s = "") const {
73  std::cout << s << "\n";
74  x_.print(s + "x");
75  priorFactor_->print(s + "density");
76  }
77 
81 
87  T predict(const NoiseModelFactor& motionFactor);
88 
93  T update(const NoiseModelFactor& measurementFactor);
94 
97  return priorFactor_;
98  }
99 
101 };
102 
103 } // namespace
104 
ExtendedKalmanFilter(Key key_initial, T x_initial, noiseModel::Gaussian::shared_ptr P_initial)
Factor Graph consisting of non-linear factors.
T update(const NoiseModelFactor &measurementFactor)
static T solve_(const GaussianFactorGraph &linearFactorGraph, const Values &linearizationPoints, Key x, JacobianFactor::shared_ptr *newPrior)
GTSAM_CONCEPT_ASSERT(IsTestable< VALUE >)
Class to perform generic Kalman Filtering using nonlinear factor graphs.
JacobianFactor::shared_ptr priorFactor_
void print(const std::string &s="") const
print
RealScalar s
T predict(const NoiseModelFactor &motionFactor)
std::shared_ptr< This > shared_ptr
shared_ptr to this class
std::shared_ptr< ExtendedKalmanFilter< VALUE > > shared_ptr
traits
Definition: chartTesting.h:28
Non-linear factor base classes.
const JacobianFactor::shared_ptr Density() const
Return current predictive (if called after predict)/posterior (if called after update) ...
std::shared_ptr< Gaussian > shared_ptr
Definition: NoiseModel.h:189
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 x
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:102


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:13