17#ifndef OBSERVERBASEHPP
18#define OBSERVERBASEHPP
20#include <boost/assert.hpp>
21#include <boost/static_assert.hpp>
23#include <state-observation/api.h>
virtual StateVector stateVectorZero() const
Gives a vector of state vector size having zero values.
Index p_
inputSize is the size of the input vector
virtual void clearInputs()=0
Remove all the given values of the inputs.
Vector StateVector
StateVector is the type of state vector.
virtual void setState(const StateVector &x_k, TimeIndex k)=0
Set the value of the state vector at time index k.
virtual MeasureVector measureVectorZero() const
Gives a vector of measurement vector size having zero values.
virtual Index getMeasureSize() const
gets the size of the measurement vector
virtual InputVector inputVectorRandom() const
Gives a vector of input vector size having random values.
virtual ~ObserverBase()
Destructor.
Vector InputVector
InputVector is the type of the input vector.
virtual StateVector stateVectorRandom() const
Gives a vector of state vector size having random values.
ObserverBase()
default constructor (default values for n,m,p are zero)
virtual void setInput(const InputVector &x_k, TimeIndex k)=0
Set the value of the input vector at time index k.
virtual StateVector stateVectorConstant(double c) const
virtual void clearMeasurements()=0
Remove all the given values of the measurements.
virtual void setInputSize(Index p)
Changes the size of the input vector.
virtual InputVector inputVectorZero() const
Gives a vector of input vector size having zero values.
virtual bool checkMeasureVector(const MeasureVector &) const
Tells whether or not the vector has the dimensions of a measurement vector.
virtual Index getInputSize() const
gets the size of the input vector
virtual bool checkInputVector(const InputVector &) const
Tells whether or not the vector has the dimensions of a input vector.
virtual void setMeasurement(const MeasureVector &y_k, TimeIndex k)=0
Set the value of the measurements vector at time index k.
virtual InputVector inputVectorConstant(double c) const
Gives a vector of input vector size having duplicated "c" value.
ObserverBase(Index n, Index m, Index p=0)
Index n_
stateSize is the size of the state vector
virtual bool checkStateVector(const StateVector &v) const
Tells whether or not the vector has the dimensions of a state vector.
Vector MeasureVector
MeasureVector is the type of measurements vector.
virtual StateVector getEstimatedState(TimeIndex k)=0
virtual MeasureVector measureVectorConstant(double c) const
Gives a vector of measurement vector size having duplicated "c" value.
Index m_
measureSize is the size of measurements vector
virtual void setStateSize(Index n)
Changes the size of the state vector.
virtual void clearInputsAndMeasurements()
Remove all the given values of the inputs and measurements.
virtual MeasureVector measureVectorRandom() const
Gives a vector of measurement vector size having random values.
virtual void setMeasureSize(Index m)
Changes the size of the measurement vector.
virtual void clearStates()=0
Remove all the given values of the state.
virtual Index getStateSize() const
gets the size of the state vector
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.