|
state-observation 1.7.0
General implementation of observers.
|
The base class for sensors. This must be derived to implement a sensor. More...
#include <sensor-base.hpp>
Public Member Functions | |
| SensorBase () | |
| default constructor | |
| virtual | ~SensorBase () |
| virtual destructor | |
| virtual Vector | getMeasurements (bool noisy=true)=0 |
| virtual void | setState (const Vector &state, TimeIndex k)=0 |
| Sets the value of the state at instant k. | |
| virtual void | setNoise (NoiseBase *) |
| virtual NoiseBase * | getNoise () const |
| gets the pointer on the measurements noise | |
| virtual void | resetNoise () |
| removes the noise | |
| virtual TimeIndex | getTime () const =0 |
| gets the current time, pure virtual method | |
| virtual Index | getStateSize () const =0 |
| gets the state vector size. Pure virtual method. | |
| virtual Index | getMeasurementSize () const =0 |
| get the size of the measurements. Pure virtual method. | |
| virtual Vector | stateVectorZero () const |
| gets a zero vector of the size of a state vector | |
| virtual bool | checkStateVector (const Vector &) const |
| checks whether a vector is correctly sized or not | |
Protected Attributes | |
| NoiseBase * | noise_ |
The base class for sensors. This must be derived to implement a sensor.
Definition at line 30 of file sensor-base.hpp.
|
inlinevirtual |
virtual destructor
Definition at line 37 of file sensor-base.hpp.
|
pure virtual |
gets the measurement of the current time. We can choose to consider noise or not (default is noisy)
Implemented in stateObservation::AlgebraicSensor.
|
pure virtual |
Sets the value of the state at instant k.
Implemented in stateObservation::AlgebraicSensor.
|
virtual |
Sets a pointer on the noise on the measurements. The class does NOT destroy the noise when the destructor is called.
|
pure virtual |
gets the current time, pure virtual method
Implemented in stateObservation::AlgebraicSensor.
|
pure virtual |
gets the state vector size. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
|
pure virtual |
get the size of the measurements. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
|
protected |
Definition at line 72 of file sensor-base.hpp.