#include <navmath.h>
Public Types | |
|
typedef boost::function < ublas::vector< T > ublas::vector< T >) > | PredictFun |
| Prediction function. | |
|
typedef boost::function < ublas::vector< T > ublas::vector< T >) > | ObserveFun |
| Observation function. | |
Public Member Functions | |
| ExtendedKalmanFilter (ublas::vector< T > x0, T kP=1.0e-9) | |
| ExtendedKalmanFilter (ublas::vector< T > x0, ublas::matrix< T > P0) | |
| void | predict (PredictFun f, ublas::matrix< T > Q, T tol=1.0e-9) |
| Predicts the next state. | |
| void | correct (ObserveFun h, ublas::vector< T > z, ublas::matrix< T > R, T tol=1.0e-9) |
| Corrects for errors between the observation and current state estimate. | |
| ublas::vector< T > | getState () const |
| Returns the current state estimate. | |
| navlib::ExtendedKalmanFilter< T >::ExtendedKalmanFilter | ( | ublas::vector< T > | x0, | |
| T | kP = 1.0e-9 | |||
| ) | [inline] |
| x0 | initial state estimate. | |
| kP | small value used to generate the state uncertainty matrix. |
| navlib::ExtendedKalmanFilter< T >::ExtendedKalmanFilter | ( | ublas::vector< T > | x0, | |
| ublas::matrix< T > | P0 | |||
| ) | [inline] |
| x0 | initial state estimate | |
| P0 | initial state uncertainty matrix |
| void navlib::ExtendedKalmanFilter< T >::predict | ( | PredictFun | f, | |
| ublas::matrix< T > | Q, | |||
| T | tol = 1.0e-9 | |||
| ) | [inline] |
Predicts the next state.
| f | prediction function | |
| Q | state noise covariance matrix | |
| tol | small value used to calculate the Jacobian |
| void navlib::ExtendedKalmanFilter< T >::correct | ( | ObserveFun | h, | |
| ublas::vector< T > | z, | |||
| ublas::matrix< T > | R, | |||
| T | tol = 1.0e-9 | |||
| ) | [inline] |
Corrects for errors between the observation and current state estimate.
| h | observation function | |
| z | measurement | |
| R | measuement noise covariance matrix |
Referenced by navlib::EkfIdentifier::correct().
1.5.5