|
state-observation 1.7.0
|
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 | |
| 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.
| stateObservation::SensorBase::SensorBase | ( | ) |
default constructor
|
inlinevirtual |
virtual destructor
checks whether a vector is correctly sized or not
gets the measurement of the current time. We can choose to consider noise or not (default is noisy)
Implemented in stateObservation::AlgebraicSensor.
get the size of the measurements. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
gets the pointer on the measurements noise
gets the state vector size. Pure virtual method.
Implemented in stateObservation::AlgebraicSensor.
gets the current time, pure virtual method
Implemented in stateObservation::AlgebraicSensor.
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.
gets a zero vector of the size of a state vector
|
protected |