|
state-observation 1.7.0
|
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. | |
| virtual | ~AlgebraicSensor () |
| virtual destructor | |
| virtual Vector | getMeasurements (bool noisy=true) |
| virtual void | setState (const Vector &state, TimeIndex k) |
| Sets the value of the state at instant k. | |
| virtual TimeIndex | getTime () const |
| gets the current time | |
| virtual Index | getStateSize () const |
| gets the state vector size. Pure virtual method. | |
| virtual Index | getMeasurementSize () const |
| get the size of the measurements. Pure virtual method. | |
| virtual Index | concatenateWithInput (Index n) |
Public Member Functions inherited from stateObservation::SensorBase | |
| SensorBase () | |
| default constructor | |
| virtual | ~SensorBase () |
| virtual destructor | |
| virtual void | setNoise (NoiseBase *) |
| virtual NoiseBase * | getNoise () const |
| gets the pointer on the measurements noise | |
| virtual void | resetNoise () |
| removes the noise | |
| 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 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
|
protectedpure virtual |
the actual algorithm for the computation of the measurements, must be overloaded to implement any sensor
Implemented in stateObservation::AccelerometerGyrometerMagnetometer, and stateObservation::AccelerometerGyrometer.
|
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)
gets the measurement of the current time. We can choose to consider noise or not (default is noisy)
Implements stateObservation::SensorBase.
get the size of the measurements. Pure virtual method.
Implements stateObservation::SensorBase.
gets the state vector size. Pure virtual method.
Implements stateObservation::SensorBase.
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 |