The class is an implementation of the dynamical system defined by a 2D inverted pendulum with an elastic joint. The input is the horizontal acceleration. More...
#include <state-observation/dynamical-system/bidim-elastic-inv-pendulum-dyn-sys.hpp>
Public Member Functions | |
BidimElasticInvPendulum () | |
The constructor. More... | |
virtual | ~BidimElasticInvPendulum () |
The virtual destructor. More... | |
virtual Vector | stateDynamics (const Vector &x, const Vector &u, TimeIndex k) |
Description of the state dynamics. More... | |
virtual Vector | measureDynamics (const Vector &x, const Vector &u, TimeIndex k) |
Description of the sensor's dynamics. More... | |
virtual void | setProcessNoise (NoiseBase *) |
Sets a noise which disturbs the state dynamics. More... | |
virtual void | resetProcessNoise () |
Removes the process noise. More... | |
virtual NoiseBase * | getProcessNoise () const |
Gets the process noise. More... | |
virtual void | setMeasurementNoise (NoiseBase *) |
Sets a noise which disturbs the measurements. More... | |
virtual void | resetMeasurementNoise () |
Removes the measurement noise. More... | |
virtual NoiseBase * | getMeasurementNoise () const |
Gets a pointer on the measurement noise. More... | |
virtual void | setSamplingPeriod (double dt) |
Set the period of the time discretization. More... | |
virtual Index | getStateSize () const |
Gets the state size. More... | |
virtual Index | getInputSize () const |
Gets the input size. More... | |
virtual Index | getMeasurementSize () const |
Gets the measurement size. More... | |
void | setHeight (const double &h) |
set the height of the com of the pendulum More... | |
void | setMass (const double &m) |
set the mass of the pendulum More... | |
void | setElasticity (const double &k) |
set the elasticity of the pendulum More... | |
![]() | |
DynamicalSystemFunctorBase () | |
virtual | ~DynamicalSystemFunctorBase () |
virtual void | reset () |
virtual bool | checkStateVector (const Vector &) |
Gives a boolean answer on whether or not the vector is correctly sized to be a state vector. More... | |
virtual bool | checkInputvector (const Vector &) |
Gives a boolean answer on whether or not the vector is correctly sized to be an input vector. More... | |
Protected Attributes | |
double | k_ |
double | m_ |
double | h_ |
NoiseBase * | processNoise_ |
double | dt_ |
Static Protected Attributes | |
static const Index | stateSize_ = 4 |
static const Index | inputSize_ = 1 |
static const Index | measurementSize_ = 0 |
Additional Inherited Members | |
![]() | |
void | assertStateVector_ (const Vector &v) |
void | assertInputVector_ (const Vector &v) |
The class is an implementation of the dynamical system defined by a 2D inverted pendulum with an elastic joint. The input is the horizontal acceleration.
stateObservation::BidimElasticInvPendulum::BidimElasticInvPendulum | ( | ) |
The constructor.
|
virtual |
The virtual destructor.
|
virtual |
Gets the input size.
Implements stateObservation::DynamicalSystemFunctorBase.
|
virtual |
Gets a pointer on the measurement noise.
|
virtual |
Gets the measurement size.
Implements stateObservation::DynamicalSystemFunctorBase.
|
virtual |
Gets the process noise.
|
virtual |
Gets the state size.
Implements stateObservation::DynamicalSystemFunctorBase.
|
virtual |
Description of the sensor's dynamics.
Implements stateObservation::DynamicalSystemFunctorBase.
|
virtual |
Removes the measurement noise.
|
virtual |
Removes the process noise.
void stateObservation::BidimElasticInvPendulum::setElasticity | ( | const double & | k | ) |
set the elasticity of the pendulum
void stateObservation::BidimElasticInvPendulum::setHeight | ( | const double & | h | ) |
set the height of the com of the pendulum
void stateObservation::BidimElasticInvPendulum::setMass | ( | const double & | m | ) |
set the mass of the pendulum
|
virtual |
Sets a noise which disturbs the measurements.
|
virtual |
Sets a noise which disturbs the state dynamics.
|
virtual |
Set the period of the time discretization.
|
virtual |
Description of the state dynamics.
Implements stateObservation::DynamicalSystemFunctorBase.
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
staticprotected |