10#ifndef SIMULATIONALGEBRAICSENSORHPP
11#define SIMULATIONALGEBRAICSENSORHPP
13#include <boost/assert.hpp>
16#include <state-observation/api.h>
The base class for algebraic sensors. Algebraic sensors are sensors which depend only on the state va...
Definition algebraic-sensor.hpp:35
Vector directInputToOutput_
Definition algebraic-sensor.hpp:83
bool storedNoiselessMeasurement_
Definition algebraic-sensor.hpp:89
virtual Index getStateSize_() const =0
AlgebraicSensor()
Default constructor.
virtual void setState(const Vector &state, TimeIndex k)
Sets the value of the state at instant k.
virtual Vector computeNoiselessMeasurement_()=0
virtual Index concatenateWithInput(Index n)
TimeIndex time_
Definition algebraic-sensor.hpp:77
virtual void checkState_(const Vector &)
bool storedNoisyMeasurement_
Definition algebraic-sensor.hpp:85
Vector state_
Definition algebraic-sensor.hpp:81
virtual Index getMeasurementSize() const
get the size of the measurements. Pure virtual method.
virtual ~AlgebraicSensor()
virtual destructor
Definition algebraic-sensor.hpp:41
Index concat_
Definition algebraic-sensor.hpp:79
Vector noiselessMeasurement_
Definition algebraic-sensor.hpp:91
virtual Vector getMeasurements(bool noisy=true)
virtual TimeIndex getTime() const
gets the current time
Vector computeNoisyMeasurement_()
virtual Index getStateSize() const
gets the state vector size. Pure virtual method.
virtual Index getMeasurementSize_() const =0
Vector noisyMeasurement_
Definition algebraic-sensor.hpp:87
The base class for sensors. This must be derived to implement a sensor.
Definition sensor-base.hpp:31
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Eigen::MatrixXd Matrix
Dynamic sized Matrix.
Definition definitions.hpp:100
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76
Implements the base class of all sensors.