26#ifndef KALMANFILTER_DEFAULT_FACTORIZATION
27#define KALMANFILTER_DEFAULT_FACTORIZATION QR
56 typedef GaussianDensity::shared_ptr
State;
71 KALMANFILTER_DEFAULT_FACTORIZATION) :
72 n_(n), I_(Matrix::Identity(n_, n_)), function_(
83 State init(
const Vector& x0,
const SharedDiagonal& P0)
const;
86 State init(
const Vector& x0,
const Matrix& P0)
const;
89 void print(
const std::string& s =
"")
const;
93 return p->firstFrontalKey();
104 State predict(
const State& p,
const Matrix& F,
const Matrix& B,
105 const Vector& u,
const SharedDiagonal& modelQ)
const;
113 State predictQ(
const State& p,
const Matrix& F,
const Matrix& B,
114 const Vector& u,
const Matrix& Q)
const;
124 State predict2(
const State& p,
const Matrix& A0,
const Matrix& A1,
125 const Vector& b,
const SharedDiagonal& model)
const;
135 State update(
const State& p,
const Matrix& H,
const Vector& z,
136 const SharedDiagonal& model)
const;
144 State updateQ(
const State& p,
const Matrix& H,
const Vector& z,
145 const Matrix& Q)
const;
Linear Factor Graph where all factors are Gaussians.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:155
std::pair< GaussianConditional::shared_ptr, JacobianFactor::shared_ptr > EliminateQR(const GaussianFactorGraph &factors, const Ordering &keys)
Multiply all factors and eliminate the given keys from the resulting factor using a QR variant that h...
Definition: JacobianFactor.cpp:789
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:69
std::function< EliminationResult(const FactorGraphType &, const Ordering &)> Eliminate
The function type that does a single dense elimination step on a subgraph.
Definition: EliminateableFactorGraph.h:89
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition: GaussianFactor.h:42
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition: GaussianFactorGraph.h:69
Kalman Filter class.
Definition: KalmanFilter.h:41
Factorization
This Kalman filter is a Square-root Information filter The type below allows you to specify the facto...
Definition: KalmanFilter.h:49
static Key step(const State &p)
Return step index k, starts at 0, incremented at each predict.
Definition: KalmanFilter.h:92
GaussianDensity::shared_ptr State
The Kalman filter state is simply a GaussianDensity.
Definition: KalmanFilter.h:56