linear-kalman-filter.hpp
Go to the documentation of this file.
1 
20 #ifndef STATEOBSERVER_LINEARKALMANFILTERHPP
21 #define STATEOBSERVER_LINEARKALMANFILTERHPP
22 
23 #include <state-observation/api.h>
25 
26 namespace stateObservation
27 {
28 
47 class STATE_OBSERVATION_DLLAPI LinearKalmanFilter : public KalmanFilterBase
48 {
49 public:
55 
58 
60  typedef Matrix Bmatrix;
61 
63  typedef Matrix Dmatrix;
64 
66  virtual void setB(const Bmatrix & B);
67 
69  virtual void clearB();
70 
72  virtual void setD(const Dmatrix & D);
73 
75  virtual void clearD();
76 
78  Bmatrix getBmatrixConstant(double c) const;
79 
81  Bmatrix getBmatrixRandom() const;
82 
84  Bmatrix getBmatrixZero() const;
85 
87  bool checkBmatrix(const Bmatrix &) const;
88 
90  Dmatrix getDmatrixConstant(double c) const;
91 
93  Dmatrix getDmatrixRandom() const;
94 
96  Dmatrix getDmatrixZero() const;
97 
99  bool checkDmatrix(const Dmatrix &) const;
100 
104  virtual void setStateSize(Index n);
105 
109  virtual void setMeasureSize(Index m);
110 
114  virtual void setInputSize(Index p);
115 
116 protected:
118  virtual StateVector prediction_(TimeIndex k);
119 
121  virtual MeasureVector simulateSensor_(const StateVector & x, TimeIndex k);
122 
125 
128 
129 public:
130  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
131 };
132 
133 } // namespace stateObservation
134 
135 #endif // STATEOBSERVER_LINEARKALMANFILTERHPP
stateObservation::ObserverBase::StateVector
Vector StateVector
StateVector is the type of state vector.
Definition: observer-base.hpp:42
stateObservation::LinearKalmanFilter
The class of a Linear Kalman filter.
Definition: linear-kalman-filter.hpp:47
stateObservation::KalmanFilterBase
It mostly implements the equations of Kalman filtering It is suitablle by derivation to be used incas...
Definition: kalman-filter-base.hpp:50
stateObservation::Matrix
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition: definitions.hpp:100
kalman-filter-base.hpp
Defines the base class of a Kalman filter.
stateObservation::ObserverBase::MeasureVector
Vector MeasureVector
MeasureVector is the type of measurements vector.
Definition: observer-base.hpp:45
stateObservation::LinearKalmanFilter::d_
Matrix d_
The container of the Input-State matrix.
Definition: linear-kalman-filter.hpp:124
stateObservation::LinearKalmanFilter::Bmatrix
Matrix Bmatrix
The type of the matrix linking the input to the state.
Definition: linear-kalman-filter.hpp:60
stateObservation::TimeIndex
long int TimeIndex
Definition: definitions.hpp:139
stateObservation::LinearKalmanFilter::b_
Matrix b_
The container of the Input-Measurement matrix.
Definition: linear-kalman-filter.hpp:127
stateObservation::LinearKalmanFilter::LinearKalmanFilter
LinearKalmanFilter(Index n, Index m, Index p=0)
Definition: linear-kalman-filter.hpp:54
stateObservation::hrp2::m
constexpr double m
mass of the robot
Definition: hrp2.hpp:36
stateObservation::Index
Eigen::Index Index
Definition: definitions.hpp:138
stateObservation::LinearKalmanFilter::Dmatrix
Matrix Dmatrix
The type of the matrix linking the input to the measurement.
Definition: linear-kalman-filter.hpp:63
stateObservation
Definition: bidim-elastic-inv-pendulum-dyn-sys.hpp:20
stateObservation::LinearKalmanFilter::LinearKalmanFilter
LinearKalmanFilter()
Default constructor.
Definition: linear-kalman-filter.hpp:57