16#ifndef ZERODELAYOBSERVER_H
17#define ZERODELAYOBSERVER_H
21#include <state-observation/api.h>
The base class for observers. The observer is destinated to any dynamical system with a vector state ...
Definition observer-base.hpp:39
Vector StateVector
StateVector is the type of state vector.
Definition observer-base.hpp:42
Vector InputVector
InputVector is the type of the input vector.
Definition observer-base.hpp:48
Vector MeasureVector
MeasureVector is the type of measurements vector.
Definition observer-base.hpp:45
Defines the base class of online zero delay observers. Zero delay observers are the classical state o...
Definition zero-delay-observer.hpp:44
virtual TimeSize getMeasurementsNumber() const
Gets the number of regitered measurements.
virtual TimeSize getInputsNumber() const
Get the number of available inputs.
virtual void setInputSize(Index p)
changes the size of the input vector: reset the stored input vectors
virtual StateVector oneStepEstimation_()=0
virtual TimeIndex estimateState()
run the observer until the measurement vector is depleted.
virtual void pushInput(const ObserverBase::InputVector &u_k)
Set the input value at the next time indext.
virtual void setMeasureSize(Index m)
changes the size of the measurement vector: reset the stored measurement vectors
Vector getMeasurement(TimeIndex k) const
Get the measurement of the time index k.
virtual TimeIndex getInputTime() const
Get the time index of the last given input.
IndexedVectorArray u_
Container for the inputs.
Definition zero-delay-observer.hpp:200
bool stateIsSet() const
Returns if the state is set or not. The state being set is mandatory to start the estimator.
virtual void clearInputsAndMeasurements()
Remove all the given values of the inputs and measurements.
virtual void clearStates()
Removes the state estimation.
ZeroDelayObserver(Index n, Index m, Index p=0)
Definition zero-delay-observer.hpp:50
virtual void setCurrentState(const ObserverBase::StateVector &x_k)
Modify the value of the state vector at the current time.
IndexedVectorArray y_
Container for the measurements.
Definition zero-delay-observer.hpp:197
IndexedVector x_
while the measurements and iputs are put in lists
Definition zero-delay-observer.hpp:194
virtual void setMeasurement(const ObserverBase::MeasureVector &y_k, TimeIndex k)
virtual void setState(const ObserverBase::StateVector &x_k, TimeIndex k)
Set the value of the state vector at time index k.
virtual void setStateSize(Index n)
changes the size of the state vector: resets the stored state vector
virtual ObserverBase::StateVector getEstimatedState(TimeIndex k)
getestimated State
virtual TimeIndex getMeasurementTime() const
Get the time index of the last given measurement.
virtual void pushMeasurement(const ObserverBase::MeasureVector &y_k)
Sets the measurement value at the next time index.
virtual void setInput(const ObserverBase::InputVector &u_k, TimeIndex k)
virtual TimeIndex getCurrentTime() const
Get the value of the time index of the current state estimation.
virtual void clearInputs()
virtual ~ZeroDelayObserver()
Destructor.
Definition zero-delay-observer.hpp:56
virtual ObserverBase::StateVector getCurrentEstimatedState() const
Get the Current Estimated State.
ZeroDelayObserver()
Default constructor (default values for n,m,p are zero)
Definition zero-delay-observer.hpp:53
virtual void clearMeasurements()
Remove all the given values of the measurements.
Vector getInput(TimeIndex k) const
Get the value of the input of the time index k.
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Index TimeSize
Definition definitions.hpp:140
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76
Defines the base class of a state observer. The observer is destinated to any dynamical system with a...