state-observation 1.7.0
General implementation of observers.
Loading...
Searching...
No Matches
dynamical-system-simulator.hpp
Go to the documentation of this file.
1
12
13#ifndef STATEOBSERVATIONDYNAMICALSYSTEMSIMULATOR_H
14#define STATEOBSERVATIONDYNAMICALSYSTEMSIMULATOR_H
15
16#include <map>
17
18#include <state-observation/api.h>
19#include <state-observation/dynamical-system/dynamical-system-functor-base.hpp>
20
21namespace stateObservation
22{
31class STATE_OBSERVATION_DLLAPI DynamicalSystemSimulator
32{
33public:
36
39
43
45 virtual void setState(const Vector & x, TimeIndex k);
46
50 virtual void setInput(const Vector & u, TimeIndex k);
51
53 virtual Vector getCurrentState() const;
54
56 virtual TimeIndex getCurrentTime() const;
57
59 virtual void simulateDynamics();
60
62 virtual void simulateDynamicsTo(TimeIndex k);
63
66 virtual Vector getInput(TimeIndex k) const;
67
71 virtual Vector getMeasurement(TimeIndex k);
72
76 virtual Vector getState(TimeIndex k);
77
80 virtual IndexedVectorArray getMeasurementArray(TimeIndex startingTime, TimeSize duration);
81
84 virtual IndexedVectorArray getStateArray(TimeIndex startingTime, TimeSize duration);
85
87 virtual void resetDynamics();
88
90 virtual void resetSimulator();
91
92protected:
94
95 IndexedVectorArray x_;
96
97 IndexedVectorArray y_;
98
99 std::map<TimeIndex, Vector> u_;
100};
101} // namespace stateObservation
102#endif // STATEOBSERVATIONDYNAMICALSYSTEMSIMULATOR_H
This is the base class of any functor that describes the dynamics of the state and the measurement....
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)
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.
virtual void simulateDynamicsTo(TimeIndex k)
Runs the simulation until a given time index.
virtual Vector getMeasurement(TimeIndex k)
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)
Filtering of divergent component of motion (DCM) and estimation of a bias betweeen the DCM and the co...
Eigen::VectorXd Vector
Dynamic sized scalar vector.