state-observation 1.7.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::SensorBase Class Referenceabstract

The base class for sensors. This must be derived to implement a sensor. More...

#include <sensor-base.hpp>

Inheritance diagram for stateObservation::SensorBase:
[legend]
Collaboration diagram for stateObservation::SensorBase:
[legend]

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 NoiseBasegetNoise () 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

NoiseBasenoise_

Detailed Description

The base class for sensors. This must be derived to implement a sensor.

Definition at line 30 of file sensor-base.hpp.

Constructor & Destructor Documentation

◆ ~SensorBase()

virtual stateObservation::SensorBase::~SensorBase ( )
inlinevirtual

virtual destructor

Definition at line 37 of file sensor-base.hpp.

Member Function Documentation

◆ getMeasurements()

virtual Vector stateObservation::SensorBase::getMeasurements ( bool noisy = true)
pure virtual

gets the measurement of the current time. We can choose to consider noise or not (default is noisy)

Implemented in stateObservation::AlgebraicSensor.

◆ setState()

virtual void stateObservation::SensorBase::setState ( const Vector & state,
TimeIndex k )
pure virtual

Sets the value of the state at instant k.

Implemented in stateObservation::AlgebraicSensor.

◆ setNoise()

virtual void stateObservation::SensorBase::setNoise ( NoiseBase * )
virtual

Sets a pointer on the noise on the measurements. The class does NOT destroy the noise when the destructor is called.

◆ getTime()

virtual TimeIndex stateObservation::SensorBase::getTime ( ) const
pure virtual

gets the current time, pure virtual method

Implemented in stateObservation::AlgebraicSensor.

◆ getStateSize()

virtual Index stateObservation::SensorBase::getStateSize ( ) const
pure virtual

gets the state vector size. Pure virtual method.

Implemented in stateObservation::AlgebraicSensor.

◆ getMeasurementSize()

virtual Index stateObservation::SensorBase::getMeasurementSize ( ) const
pure virtual

get the size of the measurements. Pure virtual method.

Implemented in stateObservation::AlgebraicSensor.

Member Data Documentation

◆ noise_

NoiseBase* stateObservation::SensorBase::noise_
protected

Definition at line 72 of file sensor-base.hpp.


The documentation for this class was generated from the following file:
  • /build/source/include/state-observation/sensors-simulation/sensor-base.hpp