13#ifndef BIDIM_ELASTIC_INV_PENDULUM
14#define BIDIM_ELASTIC_INV_PENDULUM
16#include <state-observation/api.h>
85 static const Index stateSize_ = 4;
86 static const Index inputSize_ = 1;
87 static const Index measurementSize_ = 0;
The class is an implementation of the dynamical system defined by a 2D inverted pendulum with an elas...
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:31
virtual void resetMeasurementNoise()
Removes the measurement noise.
virtual Index getInputSize() const
Gets the input size.
double k_
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:77
virtual void setMeasurementNoise(NoiseBase *)
Sets a noise which disturbs the measurements.
NoiseBase * processNoise_
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:81
virtual Index getStateSize() const
Gets the state size.
void setHeight(const double &h)
set the height of the com of the pendulum
void setMass(const double &m)
set the mass of the pendulum
virtual Vector measureDynamics(const Vector &x, const Vector &u, TimeIndex k)
Description of the sensor's dynamics.
double m_
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:78
virtual NoiseBase * getMeasurementNoise() const
Gets a pointer on the measurement noise.
virtual void setProcessNoise(NoiseBase *)
Sets a noise which disturbs the state dynamics.
virtual void resetProcessNoise()
Removes the process noise.
void setElasticity(const double &k)
set the elasticity of the pendulum
double h_
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:79
virtual void setSamplingPeriod(double dt)
Set the period of the time discretization.
virtual Vector stateDynamics(const Vector &x, const Vector &u, TimeIndex k)
Description of the state dynamics.
double dt_
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:83
BidimElasticInvPendulum()
The constructor.
virtual NoiseBase * getProcessNoise() const
Gets the process noise.
virtual Index getMeasurementSize() const
Gets the measurement size.
virtual ~BidimElasticInvPendulum()
The virtual destructor.
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
Definition noise-base.hpp:29
Definition bidim-elastic-inv-pendulum-dyn-sys.hpp:21
long int TimeIndex
Definition definitions.hpp:139
Eigen::Index Index
Definition definitions.hpp:138
Eigen::VectorXd Vector
Dynamic sized scalar vector.
Definition definitions.hpp:76