state-observation 1.7.0
Loading...
Searching...
No Matches
extended-kalman-filter.hpp
Go to the documentation of this file.
1
15#ifndef STATEOBSERVER_EXTENDEDKALMANFILTERHPP
16#define STATEOBSERVER_EXTENDEDKALMANFILTERHPP
17
18#include <state-observation/api.h>
21
22namespace stateObservation
23{
43{
44
45public:
49
51
59
61 Index m,
62 Index p,
65
74
76 Index nt,
77 Index m,
78 Index mt,
79 Index p,
82
88
91
95
99
103
108 virtual Amatrix getAMatrixFD(const Vector & dx);
109
114 virtual Cmatrix getCMatrixFD(const Vector & dx);
115
117 virtual void reset();
118
119protected:
122
125
128
131
134
137
138 // optimization
151
152public:
154};
155
156} // namespace stateObservation
157
158#endif // EXTENDEDKALMANFILTERHPP
This is the base class of any functor that describes the dynamics of the state and the measurement....
Definition dynamical-system-functor-base.hpp:33
Definition extended-kalman-filter.hpp:43
DynamicalSystemFunctorBase * getFunctor(void) const
bool directInputStateProcessFeedthrough_
boolean that provides if theris a need of not for input for the state dynamics
Definition extended-kalman-filter.hpp:133
void setFunctor(DynamicalSystemFunctorBase *f)
virtual Cmatrix getCMatrixFD(const Vector &dx)
virtual MeasureVector predictSensor_(TimeIndex k)
predicts the measurement using the functor, assumed that the predicted state is up-to-date
void setDirectInputStateFeedthrough(bool b=true)
DynamicalSystemFunctorBase * f_
pointer on the dynamics functor
Definition extended-kalman-filter.hpp:136
virtual Amatrix getAMatrixFD(const Vector &dx)
virtual void reset()
Reset the extended kalman filter (call also the reset function of the dynamics functor)
DynamicalSystemFunctorBase * functor() const
Gets a pointer to the functor.
virtual MeasureVector simulateSensor_(const StateVector &x, TimeIndex k)
simulate the dynamic of the measurement using the functor
bool directInputOutputFeedthrough_
boolean that provides if theris a need of not for input for the masurement
Definition extended-kalman-filter.hpp:130
virtual StateVector prediction_(TimeIndex k)
simulate the dynamics of the state using the functor
ExtendedKalmanFilter(Index n, Index m, Index p, bool directInputOutputFeedthrough=true, bool directInputStateProcessFeedthrough=true)
ExtendedKalmanFilter(Index n, Index nt, Index m, Index mt, Index p, bool directInputOutputFeedthrough, bool directInputStateProcessFeedthrough)
void setDirectInputOutputFeedthrough(bool b=true)
It mostly implements the equations of Kalman filtering It is suitablle by derivation to be used incas...
Definition kalman-filter-base.hpp:51
Matrix Amatrix
The type of the jacobian df/dx.
Definition kalman-filter-base.hpp:54
Matrix Cmatrix
The type of the jacobian dh/dx.
Definition kalman-filter-base.hpp:57
Vector StateVector
StateVector is the type of state vector.
Definition observer-base.hpp:42
Vector InputVector
InputVector is the type of the input vector.
Definition observer-base.hpp:48
Vector MeasureVector
MeasureVector is the type of measurements vector.
Definition observer-base.hpp:45
Defines the base class of a Kalman filter.
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76
Definition extended-kalman-filter.hpp:140
ObserverBase::StateVector dx_
Definition extended-kalman-filter.hpp:146
ObserverBase::StateVector x_
Definition extended-kalman-filter.hpp:145
ObserverBase::StateVector xp_
Definition extended-kalman-filter.hpp:147
KalmanFilterBase::Amatrix a_
Definition extended-kalman-filter.hpp:143
KalmanFilterBase::Cmatrix c_
Definition extended-kalman-filter.hpp:144
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ObserverBase::InputVector u_
Definition extended-kalman-filter.hpp:142
ObserverBase::MeasureVector yp_
Definition extended-kalman-filter.hpp:148