File control/src/Sensor/ControlSensor.hpp#
Go to the source code of this file
A generic control sensor
-
class ControlSensor : public Sensor
- #include <ControlSensor.hpp>
Generic control Sensor to get the output of the system.
Subclassed by LinearSensor
Public Functions
-
virtual void initialize(const NonSmoothDynamicalSystem &nsds)
initialize sensor data.
- Parameters:
nsds – the Model
-
unsigned int getYDim() const
Get the dimension of the output.
- Returns:
an unsigned int
-
inline const SiconosVector &y() const
Get a pointer to the output.
- Returns:
SP::SiconosVector to the output
-
virtual void capture() = 0
capture data when the SensorEvent is processed => set data[SensorEvent]=…
Protected Functions
-
inline ControlSensor()#
Default constructor.
Protected Attributes
-
double _delay#
delay between the measurement on the DynamicalSystem and the avaibility of the value
Private Functions
-
ACCEPT_SERIALIZATION(ControlSensor)#
-
virtual void initialize(const NonSmoothDynamicalSystem &nsds)