This class is the base class of the flexibility estimators that use an extended Kalman Filter. Several methods require to be overloaded to derive an implementation from this base class. More...
#include <state-observation/flexibility-estimation/ekf-flexibility-estimator-base.hpp>
Public Member Functions | |
EKFFlexibilityEstimatorBase (Index stateSize, Index measurementSize, Index inputSize, const Vector &dx=Vector::Zero(0)) | |
virtual | ~EKFFlexibilityEstimatorBase () |
virtual destructor More... | |
virtual void | setFlexibilityGuess (const Matrix &)=0 |
virtual void | setFlexibilityCovariance (const Matrix &P) |
Sets the covariance matrix of the flexibility Guess. More... | |
virtual Matrix | getFlexibilityCovariance () const |
Gets the covariance matrix of the flexibility. More... | |
virtual void | setProcessNoiseCovariance (const Matrix &Q) |
virtual void | setMeasurementNoiseCovariance (const Matrix &R) |
virtual Matrix | getProcessNoiseCovariance () const |
gets the covariance matrices for the process noises More... | |
virtual Matrix | getMeasurementNoiseCovariance () const |
gets the covariance matrices for the sensor noises More... | |
virtual void | setMeasurement (const Vector &y) |
Sets the value of the next sensor measurement y_{k+1}. More... | |
virtual Vector | getMeasurement () |
virtual void | setInput (const Vector &u) |
virtual void | setMeasurementInput (const Vector &u) |
virtual Vector | getInput () |
virtual Vector | getMeasurementInput () |
virtual const Vector & | getFlexibilityVector () |
Gets an estimation of the flexibility in the form of a state vector \hat{x_{k+1}}. More... | |
virtual Matrix4 | getFlexibility ()=0 |
Gets an estimation of the flexibility in the form of a homogeneous matrix. More... | |
virtual const stateObservation::ExtendedKalmanFilter & | getEKF () const |
Gets a const reference on the extended Kalman filter. More... | |
virtual stateObservation::ExtendedKalmanFilter & | getEKF () |
Gets a reference on the extended Kalman filter. More... | |
virtual Index | getStateSize () const =0 |
virtual Index | getMeasurementSize () const =0 |
virtual Index | getInputSize () const =0 |
virtual Vector | getSimulatedMeasurement () |
Gets a simulation of the. More... | |
virtual void | resetCovarianceMatrices ()=0 |
Resets the covariance matrices to their original values. More... | |
virtual Vector | getInnovation () |
Get the last vector of inovation of the Kalman filter. More... | |
virtual Vector | getPredictedMeasurement () |
Get the simulated measurement of the predicted state. More... | |
virtual Vector | getPrediction () |
Get the predicted state. More... | |
virtual Vector | getLastPredictedMeasurement () |
Get the last simulated measurement. More... | |
virtual Vector | getLastPrediction () |
Get the last predicted state. More... | |
![]() | |
virtual | ~FlexibilityEstimatorBase () |
virtual destructor More... | |
FlexibilityEstimatorBase () | |
The constructor. More... | |
Protected Member Functions | |
virtual void | setJacobians (const Matrix &A, const Matrix &C) |
virtual void | useFiniteDifferencesJacobians (Vector dx) |
Protected Attributes | |
stateObservation::ExtendedKalmanFilter | ekf_ |
bool | finiteDifferencesJacobians_ |
Vector | dx_ |
Vector | lastX_ |
TimeIndex | k_ |
This class is the base class of the flexibility estimators that use an extended Kalman Filter. Several methods require to be overloaded to derive an implementation from this base class.
stateObservation::flexibilityEstimation::EKFFlexibilityEstimatorBase::EKFFlexibilityEstimatorBase | ( | Index | stateSize, |
Index | measurementSize, | ||
Index | inputSize, | ||
const Vector & | dx = Vector::Zero(0) |
||
) |
The constructor.
|
virtual |
virtual destructor
|
virtual |
Gets a reference on the extended Kalman filter.
|
virtual |
Gets a const reference on the extended Kalman filter.
|
pure virtual |
Gets an estimation of the flexibility in the form of a homogeneous matrix.
Implements stateObservation::flexibilityEstimation::FlexibilityEstimatorBase.
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Gets the covariance matrix of the flexibility.
|
virtual |
Gets an estimation of the flexibility in the form of a state vector \hat{x_{k+1}}.
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Get the last vector of inovation of the Kalman filter.
|
virtual |
|
pure virtual |
Gets the input size this method is pure virtual and reauires to be overloaded in implementation
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Get the last simulated measurement.
|
virtual |
Get the last predicted state.
|
virtual |
|
virtual |
|
virtual |
gets the covariance matrices for the sensor noises
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
pure virtual |
Gets the measurements size this method is pure virtual and reauires to be overloaded in implementation
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Get the simulated measurement of the predicted state.
|
virtual |
Get the predicted state.
|
virtual |
gets the covariance matrices for the process noises
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Gets a simulation of the.
|
pure virtual |
Gets the state size this method is pure virtual and reauires to be overloaded in implementation
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
pure virtual |
Resets the covariance matrices to their original values.
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Sets the covariance matrix of the flexibility Guess.
|
pure virtual |
Sets a value of the flexibility x_k provided from another source can be used for initialization of the estimator This is a pure virtual function that requires to be overloaded in implementation
Implements stateObservation::flexibilityEstimation::FlexibilityEstimatorBase.
Implemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Sets the value of the next input for the state process dynamics i.e. : gives u_k such that x_{k+1} = f(x_k,u_k)
|
protectedvirtual |
|
virtual |
Sets the value of the next sensor measurement y_{k+1}.
Implements stateObservation::flexibilityEstimation::FlexibilityEstimatorBase.
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Sets the value of the next measurement i.e. : gives u_{k+1} such that y_{k+1}=h(x_{k+1},u_{k+1})
|
virtual |
Sets the covariance matrices for the sensor noises
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
virtual |
Sets the covariance matrices for the process noises
Reimplemented in stateObservation::flexibilityEstimation::ModelBaseEKFFlexEstimatorIMU, and stateObservation::flexibilityEstimation::FixedContactEKFFlexEstimatorIMU.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |