Class Observer#
Defined in Program listing for file control/src/Observer/Observer.hpp
-
class Observer#
Observers Base Class.
Abstract class, interface to user-defined observers.
An Observer is dedicated to estimate the state of a DynamicalSystem given its dynamics, inputs and a initial estimate of the state.
Subclassed by LuenbergerObserver, SlidingReducedOrderObserver
Public Functions
-
Observer(unsigned int type, SP::ControlSensor sensor, const SiconosVector &xHat0, const std::string &newId = "none")#
Constructor with a TimeDiscretisation.
-
Observer(unsigned int type, SP::ControlSensor sensor, const SiconosVector &xHat0, SP::DynamicalSystem ds, const std::string &newId = "none")#
Constructor with a TimeDiscretisation.
-
virtual ~Observer()#
destructor
-
virtual void setTimeDiscretisation(const TimeDiscretisation &td)#
This is derived in child classes if they need to copy the TimeDiscretisation associated with this Sensor.
- Parameters:
td – the TimeDiscretisation for this Sensor
-
virtual void initialize(const NonSmoothDynamicalSystem &nsds, const Simulation &s)#
initialize observer data.
- Parameters:
nsds – current nonsmooth dynamical system
s – current simulation setup
-
virtual void process() = 0#
capture data when the ObserverEvent is processed
-
Observer(unsigned int type, SP::ControlSensor sensor, const SiconosVector &xHat0, const std::string &newId = "none")#