state-observation 1.7.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::BidimElasticInvPendulum Class Reference

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 <bidim-elastic-inv-pendulum-dyn-sys.hpp>

Inheritance diagram for stateObservation::BidimElasticInvPendulum:
[legend]
Collaboration diagram for stateObservation::BidimElasticInvPendulum:
[legend]

Public Member Functions

 BidimElasticInvPendulum ()
 The constructor.
virtual ~BidimElasticInvPendulum ()
 The virtual destructor.
virtual Vector stateDynamics (const Vector &x, const Vector &u, TimeIndex k)
 Description of the state dynamics.
virtual Vector measureDynamics (const Vector &x, const Vector &u, TimeIndex k)
 Description of the sensor's dynamics.
virtual void setProcessNoise (NoiseBase *)
 Sets a noise which disturbs the state dynamics.
virtual void resetProcessNoise ()
 Removes the process noise.
virtual NoiseBasegetProcessNoise () const
 Gets the process noise.
virtual void setMeasurementNoise (NoiseBase *)
 Sets a noise which disturbs the measurements.
virtual void resetMeasurementNoise ()
 Removes the measurement noise.
virtual NoiseBasegetMeasurementNoise () const
 Gets a pointer on the measurement noise.
virtual void setSamplingPeriod (double dt)
 Set the period of the time discretization.
virtual Index getStateSize () const
 Gets the state size.
virtual Index getInputSize () const
 Gets the input size.
virtual Index getMeasurementSize () const
 Gets the measurement 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
void setElasticity (const double &k)
 set the elasticity of the pendulum
Public Member Functions inherited from stateObservation::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.
virtual bool checkInputvector (const Vector &)
 Gives a boolean answer on whether or not the vector is correctly sized to be an input vector.

Protected Attributes

double k_
double m_
double h_
NoiseBaseprocessNoise_
double dt_

Static Protected Attributes

static const Index stateSize_ = 4
static const Index inputSize_ = 1
static const Index measurementSize_ = 0

Additional Inherited Members

Protected Member Functions inherited from stateObservation::DynamicalSystemFunctorBase
void assertStateVector_ (const Vector &v)
void assertInputVector_ (const Vector &v)

Detailed Description

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.

Definition at line 30 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

Member Function Documentation

◆ stateDynamics()

virtual Vector stateObservation::BidimElasticInvPendulum::stateDynamics ( const Vector & x,
const Vector & u,
TimeIndex k )
virtual

Description of the state dynamics.

Implements stateObservation::DynamicalSystemFunctorBase.

◆ measureDynamics()

virtual Vector stateObservation::BidimElasticInvPendulum::measureDynamics ( const Vector & x,
const Vector & u,
TimeIndex k )
virtual

Description of the sensor's dynamics.

Implements stateObservation::DynamicalSystemFunctorBase.

◆ getStateSize()

virtual Index stateObservation::BidimElasticInvPendulum::getStateSize ( ) const
virtual

Gets the state size.

Implements stateObservation::DynamicalSystemFunctorBase.

◆ getInputSize()

virtual Index stateObservation::BidimElasticInvPendulum::getInputSize ( ) const
virtual

Gets the input size.

Implements stateObservation::DynamicalSystemFunctorBase.

◆ getMeasurementSize()

virtual Index stateObservation::BidimElasticInvPendulum::getMeasurementSize ( ) const
virtual

Gets the measurement size.

Implements stateObservation::DynamicalSystemFunctorBase.

Member Data Documentation

◆ k_

double stateObservation::BidimElasticInvPendulum::k_
protected

Definition at line 77 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ m_

double stateObservation::BidimElasticInvPendulum::m_
protected

Definition at line 78 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ h_

double stateObservation::BidimElasticInvPendulum::h_
protected

Definition at line 79 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ processNoise_

NoiseBase* stateObservation::BidimElasticInvPendulum::processNoise_
protected

Definition at line 81 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ dt_

double stateObservation::BidimElasticInvPendulum::dt_
protected

Definition at line 83 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ stateSize_

const Index stateObservation::BidimElasticInvPendulum::stateSize_ = 4
staticprotected

Definition at line 85 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ inputSize_

const Index stateObservation::BidimElasticInvPendulum::inputSize_ = 1
staticprotected

Definition at line 86 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.

◆ measurementSize_

const Index stateObservation::BidimElasticInvPendulum::measurementSize_ = 0
staticprotected

Definition at line 87 of file bidim-elastic-inv-pendulum-dyn-sys.hpp.


The documentation for this class was generated from the following file: