13#ifndef STATEOBSERVERDYNAMICALSYSTEMFUNCTORBASE_H
14#define STATEOBSERVERDYNAMICALSYSTEMFUNCTORBASE_H
16#include <state-observation/api.h>
32class STATE_OBSERVATION_DLLAPI DynamicalSystemFunctorBase
35 DynamicalSystemFunctorBase();
36 virtual ~DynamicalSystemFunctorBase();
61 inline void assertStateVector_(
const Vector & v)
64 BOOST_ASSERT(
checkStateVector(v) &&
"ERROR: The state vector has the wrong size");
66 inline void assertInputVector_(
const Vector & v)
69 BOOST_ASSERT(checkInputvector(v) &&
"ERROR: The input vector has the wrong size");
virtual bool checkStateVector(const Vector &)
Gives a boolean answer on whether or not the vector is correctly sized to be a state vector.
virtual bool checkInputvector(const Vector &)
Gives a boolean answer on whether or not the vector is correctly sized to be an input vector.
virtual Vector stateDynamics(const Vector &x, const Vector &u, TimeIndex k)=0
The function to overload to describe the dynamics of the state.
virtual Index getStateSize() const =0
gets the state size
virtual Index getInputSize() const =0
gets the input size
virtual Vector measureDynamics(const Vector &x, const Vector &u, TimeIndex k)=0
The function to overload to describe the dynamics of the sensor (measurements).
virtual Index getMeasurementSize() const =0
gets the measurements size
Definitions of types and some structures.
Filtering of divergent component of motion (DCM) and estimation of a bias betweeen the DCM and the co...
Eigen::VectorXd Vector
Dynamic sized scalar vector.