The base class for algebraic sensors. Algebraic sensors are sensors which depend only on the state value and the current time and do not have internal dynamics (or a dynamics which converges fast enough to be ignored). This class implements mostly the containers and the interface to algebraic sensors. Algebraic sensors must be derived from this class. More...
#include <state-observation/sensors-simulation/algebraic-sensor.hpp>


Public Member Functions | |
| AlgebraicSensor () | |
| Default constructor. More... | |
| virtual | ~AlgebraicSensor () |
| virtual destructor More... | |
| virtual Vector | getMeasurements (bool noisy=true) |
| virtual void | setState (const Vector &state, TimeIndex k) |
| Sets the value of the state at instant k. More... | |
| virtual TimeIndex | getTime () const |
| gets the current time More... | |
| virtual Index | getStateSize () const |
| gets the state vector size. Pure virtual method. More... | |
| virtual Index | getMeasurementSize () const |
| get the size of the measurements. Pure virtual method. More... | |
| virtual Index | concatenateWithInput (Index n) |
Public Member Functions inherited from stateObservation::SensorBase | |
| SensorBase () | |
| default constructor More... | |
| virtual | ~SensorBase () |
| virtual destructor 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 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 Member Functions | |
| virtual Vector | computeNoiselessMeasurement_ ()=0 |
| virtual Index | getStateSize_ () const =0 |
| virtual Index | getMeasurementSize_ () const =0 |
| Vector | computeNoisyMeasurement_ () |
| virtual void | checkState_ (const Vector &) |
Protected Attributes | |
| TimeIndex | time_ |
| Index | concat_ |
| Vector | state_ |
| Vector | directInputToOutput_ |
| bool | storedNoisyMeasurement_ |
| Vector | noisyMeasurement_ |
| bool | storedNoiselessMeasurement_ |
| Vector | noiselessMeasurement_ |
Protected Attributes inherited from stateObservation::SensorBase | |
| NoiseBase * | noise_ |
The base class for algebraic sensors. Algebraic sensors are sensors which depend only on the state value and the current time and do not have internal dynamics (or a dynamics which converges fast enough to be ignored). This class implements mostly the containers and the interface to algebraic sensors. Algebraic sensors must be derived from this class.
| stateObservation::AlgebraicSensor::AlgebraicSensor | ( | ) |
Default constructor.
|
inlinevirtual |
virtual destructor
|
protectedvirtual |
|
protectedpure virtual |
the actual algorithm for the computation of the measurements, must be overloaded to implement any sensor
Implemented in stateObservation::AccelerometerGyrometer, and stateObservation::AccelerometerGyrometerMagnetometer.
|
protected |
concatenates the n last components of the state in the measurement (useful when the measurements are already computed or when they come from external source)
|
virtual |
gets the measurement of the current time. We can choose to consider noise or not (default is noisy)
Implements stateObservation::SensorBase.
|
virtual |
get the size of the measurements. Pure virtual method.
Implements stateObservation::SensorBase.
|
protectedpure virtual |
|
virtual |
gets the state vector size. Pure virtual method.
Implements stateObservation::SensorBase.
|
protectedpure virtual |
|
virtual |
gets the current time
Implements stateObservation::SensorBase.
|
virtual |
Sets the value of the state at instant k.
Implements stateObservation::SensorBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |