|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MATH_KALMAN_H
28 #define RL_MATH_KALMAN_H
30 #define EIGEN_MATRIXBASE_PLUGIN <rl/math/MatrixBaseAddons.h>
31 #define EIGEN_QUATERNIONBASE_PLUGIN <rl/math/QuaternionBaseAddons.h>
32 #define EIGEN_TRANSFORM_PLUGIN <rl/math/TransformAddons.h>
50 template<
typename Scalar>
56 typedef typename ::Eigen::Matrix<Scalar, ::Eigen::Dynamic, ::Eigen::Dynamic>
MatrixType;
58 typedef typename ::Eigen::Matrix<Scalar, ::Eigen::Dynamic, 1>
VectorType;
60 Kalman(const ::std::size_t& states, const ::std::size_t& observations, const ::std::size_t& controls = 0) :
67 R(
MatrixType::Identity(observations, observations)),
101 assert(z.size() ==
xPriori.size());
181 assert(u.size() ==
B.cols());
263 #endif // RL_MATH_KALMAN_H
const MatrixType & measurementModel() const
Definition: Kalman.h:137
VectorType xPriori
A priori state estimate .
Definition: Kalman.h:258
const MatrixType & errorCovariancePosteriori() const
Definition: Kalman.h:117
const MatrixType & processNoiseCovariance() const
Definition: Kalman.h:195
::Eigen::Matrix< Scalar, ::Eigen::Dynamic, ::Eigen::Dynamic > MatrixType
Definition: Kalman.h:56
MatrixType A
relates the state at the previous time step to the state at the current step .
Definition: Kalman.h:234
Scalar ScalarType
Definition: Kalman.h:54
MatrixType PPriori
A priori estimate error covariance .
Definition: Kalman.h:246
MatrixType H
relates the state to the measurement .
Definition: Kalman.h:240
Kalman(const ::std::size_t &states, const ::std::size_t &observations, const ::std::size_t &controls=0)
Definition: Kalman.h:60
VectorType & statePriori()
Definition: Kalman.h:210
MatrixType & measurementModel()
Definition: Kalman.h:132
MatrixType PPosteriori
A posteriori estimate error covariance .
Definition: Kalman.h:243
VectorType correct(const VectorType &z)
Measurement update ("correct").
Definition: Kalman.h:99
MatrixType & errorCovariancePosteriori()
Definition: Kalman.h:112
MatrixType B
relates the control input to the state .
Definition: Kalman.h:237
const VectorType & statePriori() const
Definition: Kalman.h:215
const VectorType & statePosteriori() const
Definition: Kalman.h:205
MatrixType Q
Process noise covariance .
Definition: Kalman.h:249
const MatrixType & errorCovariancePriori() const
Definition: Kalman.h:127
MatrixType & errorCovariancePriori()
Definition: Kalman.h:122
MatrixType & measurementNoiseCovariance()
Definition: Kalman.h:142
MatrixType & controlModel()
Definition: Kalman.h:77
const MatrixType & controlModel() const
Definition: Kalman.h:82
VectorType predict()
Time update ("predict") without control input.
Definition: Kalman.h:160
VectorType predict(const VectorType &u)
Time update ("predict") with control input.
Definition: Kalman.h:179
VectorType & statePosteriori()
Definition: Kalman.h:200
MatrixType & processNoiseCovariance()
Definition: Kalman.h:190
VectorType xPosteriori
A posteriori state estimate .
Definition: Kalman.h:255
::Eigen::Matrix< Scalar, ::Eigen::Dynamic, 1 > VectorType
Definition: Kalman.h:58
Kalman filter.
Definition: Kalman.h:52
MatrixType & stateTransitionModel()
Definition: Kalman.h:220
const MatrixType & stateTransitionModel() const
Definition: Kalman.h:225
virtual ~Kalman()
Definition: Kalman.h:73
MatrixType R
Measurement error covariance .
Definition: Kalman.h:252
const MatrixType & measurementNoiseCovariance() const
Definition: Kalman.h:147
Robotics Library.
Definition: AnalogInput.cpp:30