13#ifndef STATEOBSERVATIONDYNAMICALSYSTEMSIMULATOR_H
14#define STATEOBSERVATIONDYNAMICALSYSTEMSIMULATOR_H
18#include <state-observation/api.h>
99 std::map<TimeIndex, Vector>
u_;
This is the base class of any functor that describes the dynamics of the state and the measurement....
Definition dynamical-system-functor-base.hpp:33
The class gives a small encapsulation of the dynamics functor, which enables the simulation of the dy...
Definition dynamical-system-simulator.hpp:32
virtual void setInput(const Vector &u, TimeIndex k)
virtual void setDynamicsFunctor(DynamicalSystemFunctorBase *)
virtual TimeIndex getCurrentTime() const
Gets the current time.
virtual void resetDynamics()
resets all the states, the measurements and the inputs
virtual ~DynamicalSystemSimulator()
Virtual destructor.
virtual void resetSimulator()
resets all the simulator with even the dynamics functor
virtual Vector getState(TimeIndex k)
IndexedVectorArray y_
Definition dynamical-system-simulator.hpp:97
virtual Vector getCurrentState() const
Gets the state of the current time.
virtual void setState(const Vector &x, TimeIndex k)
Sets the state value at instant k.
IndexedVectorArray x_
Definition dynamical-system-simulator.hpp:95
virtual void simulateDynamicsTo(TimeIndex k)
Runs the simulation until a given time index.
virtual Vector getMeasurement(TimeIndex k)
std::map< TimeIndex, Vector > u_
Definition dynamical-system-simulator.hpp:99
DynamicalSystemFunctorBase * f_
Definition dynamical-system-simulator.hpp:93
virtual IndexedVectorArray getStateArray(TimeIndex startingTime, TimeSize duration)
virtual void simulateDynamics()
Runs one loop of the dynamics simulation.
virtual Vector getInput(TimeIndex k) const
virtual IndexedVectorArray getMeasurementArray(TimeIndex startingTime, TimeSize duration)
DynamicalSystemSimulator()
Constructor.
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Index TimeSize
Definition definitions.hpp:140
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76