The base class for sensors. This must be derived to implement a sensor. More...
#include <state-observation/sensors-simulation/sensor-base.hpp>


Public Member Functions | |
| SensorBase () | |
| default constructor More... | |
| virtual | ~SensorBase () |
| virtual destructor More... | |
| 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. More... | |
| virtual void | setNoise (NoiseBase *) |
| virtual NoiseBase * | getNoise () const |
| gets the pointer on the measurements noise More... | |
| virtual void | resetNoise () |
| removes the noise More... | |
| virtual TimeIndex | getTime () const =0 |
| gets the current time, pure virtual method More... | |
| virtual Index | getStateSize () const =0 |
| gets the state vector size. Pure virtual method. More... | |
| virtual Index | getMeasurementSize () const =0 |
| get the size of the measurements. Pure virtual method. More... | |
| virtual Vector | stateVectorZero () const |
| gets a zero vector of the size of a state vector More... | |
| virtual bool | checkStateVector (const Vector &) const |
| checks whether a vector is correctly sized or not More... | |
Protected Attributes | |
| NoiseBase * | noise_ |
The base class for sensors. This must be derived to implement a sensor.
| stateObservation::SensorBase::SensorBase | ( | ) |
default constructor
|
inlinevirtual |
virtual destructor
|
virtual |
checks whether a vector is correctly sized or not
|
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 |
get the size of the measurements. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
|
virtual |
gets the pointer on the measurements noise
|
pure virtual |
gets the state vector size. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
|
pure virtual |
gets the current time, pure virtual method
Implemented in stateObservation::AlgebraicSensor.
|
virtual |
removes the noise
|
virtual |
Sets a pointer on the noise on the measurements. The class does NOT destroy the noise when the destructor is called.
|
pure virtual |
Sets the value of the state at instant k.
Implemented in stateObservation::AlgebraicSensor.
|
virtual |
gets a zero vector of the size of a state vector
|
protected |