- 3.0.2 optimal control module.
LinkedMasses Class Reference

#include <LinkedMasses.h>

Inheritance diagram for LinkedMasses:
ct::core::LinearSystem< 8, 3 > ct::core::ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR > ct::core::System< STATE_DIM, SCALAR >

Public Member Functions

 LinkedMasses ()
 
const state_matrix_tgetDerivativeState (const StateVector< state_dim > &x, const ControlVector< control_dim > &u, const double t=0.0) override
 
const state_control_matrix_tgetDerivativeControl (const StateVector< state_dim > &x, const ControlVector< control_dim > &u, const double t=0.0) override
 
LinkedMassesclone () const override
 
- Public Member Functions inherited from ct::core::LinearSystem< 8, 3 >
 LinearSystem (const ct::core::SYSTEM_TYPE &type=ct::core::SYSTEM_TYPE::GENERAL)
 
virtual ~LinearSystem ()
 
virtual void computeControlledDynamics (const state_vector_t &state, const time_t &t, const control_vector_t &control, state_vector_t &derivative) override
 
virtual const state_matrix_tgetDerivativeState (const state_vector_t &x, const control_vector_t &u, const time_t t=time_t(0.0))=0
 
virtual const state_control_matrix_tgetDerivativeControl (const state_vector_t &x, const control_vector_t &u, const time_t t=time_t(0.0))=0
 
virtual void getDerivatives (state_matrix_t &A, state_control_matrix_t &B, const state_vector_t &x, const control_vector_t &u, const time_t t=time_t(0.0))
 
- Public Member Functions inherited from ct::core::ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR >
 ControlledSystem (const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 
 ControlledSystem (std::shared_ptr< ct::core::Controller< STATE_DIM, CONTROL_DIM, SCALAR >> controller, const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 
 ControlledSystem (const ControlledSystem &arg)
 
virtual ~ControlledSystem ()
 
void setController (const std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, SCALAR >> &controller)
 
void getController (std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, SCALAR >> &controller) const
 
std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, SCALAR > > getController ()
 
virtual void computeDynamics (const StateVector< STATE_DIM, SCALAR > &state, const time_t &t, StateVector< STATE_DIM, SCALAR > &derivative) override
 
virtual void computeControlledDynamics (const StateVector< STATE_DIM, SCALAR > &state, const time_t &t, const ControlVector< CONTROL_DIM, SCALAR > &control, StateVector< STATE_DIM, SCALAR > &derivative)=0
 
ControlVector< CONTROL_DIM, SCALARgetLastControlAction ()
 
- Public Member Functions inherited from ct::core::System< STATE_DIM, SCALAR >
 System (const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 
 System (const System &other)
 
virtual ~System ()
 
virtual void computeDynamics (const StateVector< STATE_DIM, SCALAR > &state, const time_t &t, StateVector< STATE_DIM, SCALAR > &derivative)=0
 
SYSTEM_TYPE getType () const
 
virtual bool isSymplectic () const
 

Static Public Attributes

static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const int state_dim = 8
 
static const int control_dim = 3
 
static const int pp = state_dim / 2
 

Additional Inherited Members

- Public Types inherited from ct::core::LinearSystem< 8, 3 >
typedef Base::time_t time_t
 
typedef StateVector< 8, SCALARstate_vector_t
 
typedef ControlVector< 3, SCALARcontrol_vector_t
 
typedef StateMatrix< 8, SCALARstate_matrix_t
 
typedef StateControlMatrix< 8, 3, SCALARstate_control_matrix_t
 
- Public Types inherited from ct::core::ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR >
typedef std::shared_ptr< ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR > > Ptr
 
typedef Base::time_t time_t
 
- Public Types inherited from ct::core::System< STATE_DIM, SCALAR >
typedef SCALAR time_t
 
- Public Attributes inherited from ct::core::LinearSystem< 8, 3 >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ControlledSystem< 8, 3, SCALARBase
 
- Public Attributes inherited from ct::core::ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef System< STATE_DIM, SCALARBase
 
- Public Attributes inherited from ct::core::System< STATE_DIM, SCALAR >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef SCALAR S
 
- Protected Attributes inherited from ct::core::ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR >
std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, SCALAR > > controller_
 
ControlVector< CONTROL_DIM, SCALARcontrolAction_
 
- Protected Attributes inherited from ct::core::System< STATE_DIM, SCALAR >
SYSTEM_TYPE type_
 

Constructor & Destructor Documentation

◆ LinkedMasses()

LinkedMasses::LinkedMasses ( )
inline

References dmcopy(), and Z.

Member Function Documentation

◆ getDerivativeState()

const state_matrix_t& LinkedMasses::getDerivativeState ( const StateVector< state_dim > &  x,
const ControlVector< control_dim > &  u,
const double  t = 0.0 
)
inlineoverride

◆ getDerivativeControl()

const state_control_matrix_t& LinkedMasses::getDerivativeControl ( const StateVector< state_dim > &  x,
const ControlVector< control_dim > &  u,
const double  t = 0.0 
)
inlineoverride

◆ clone()

LinkedMasses* LinkedMasses::clone ( ) const
inlineoverridevirtual

Member Data Documentation

◆ state_dim

EIGEN_MAKE_ALIGNED_OPERATOR_NEW const int LinkedMasses::state_dim = 8
static

◆ control_dim

const int LinkedMasses::control_dim = 3
static

◆ pp

const int LinkedMasses::pp = state_dim / 2
static

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