- 3.0.2 core module.
TestOscillator Class Reference
Inheritance diagram for TestOscillator:
ct::core::ControlledSystem< 2, 1 > ct::core::System< STATE_DIM, double >

Public Member Functions

virtual TestOscillatorclone () const override
 deep copy More...
 
virtual void computeControlledDynamics (const StateVector< 2 > &state, const double &t, const ControlVector< 1 > &control, StateVector< 2 > &derivative)
 
- Public Member Functions inherited from ct::core::ControlledSystem< 2, 1 >
 ControlledSystem (const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 default constructor More...
 
 ControlledSystem (std::shared_ptr< ct::core::Controller< STATE_DIM, CONTROL_DIM, double >> controller, const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 constructor More...
 
 ControlledSystem (const ControlledSystem &arg)
 copy constructor More...
 
virtual ~ControlledSystem ()
 destructor More...
 
void setController (const std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, double >> &controller)
 set a new controller More...
 
void getController (std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, double >> &controller) const
 get the controller instance More...
 
std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, double > > getController ()
 get the controller instace More...
 
virtual void computeDynamics (const StateVector< STATE_DIM, double > &state, const time_t &t, StateVector< STATE_DIM, double > &derivative) override
 compute the dynamics of the system More...
 
virtual void computeControlledDynamics (const StateVector< STATE_DIM, double > &state, const time_t &t, const ControlVector< CONTROL_DIM, double > &control, StateVector< STATE_DIM, double > &derivative)=0
 
ControlVector< CONTROL_DIM, double > getLastControlAction ()
 
- Public Member Functions inherited from ct::core::System< STATE_DIM, double >
 System (const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
 default constructor More...
 
 System (const System &other)
 copy constructor More...
 
virtual ~System ()
 destructor More...
 
virtual void computeDynamics (const StateVector< STATE_DIM, double > &state, const time_t &t, StateVector< STATE_DIM, double > &derivative)=0
 computes the system dynamics More...
 
SYSTEM_TYPE getType () const
 get the type of system More...
 
virtual bool isSymplectic () const
 Determines if the system is in symplectic form. More...
 

Additional Inherited Members

- Public Types inherited from ct::core::ControlledSystem< 2, 1 >
typedef std::shared_ptr< ControlledSystem< STATE_DIM, CONTROL_DIM, double > > Ptr
 
typedef Base::time_t time_t
 
- Public Types inherited from ct::core::System< STATE_DIM, double >
typedef double time_t
 the type of the time variable More...
 
- Public Attributes inherited from ct::core::ControlledSystem< 2, 1 >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef System< STATE_DIM, double > Base
 
- Public Attributes inherited from ct::core::System< STATE_DIM, double >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef double S
 the scalar type More...
 
- Protected Attributes inherited from ct::core::ControlledSystem< 2, 1 >
std::shared_ptr< Controller< STATE_DIM, CONTROL_DIM, double > > controller_
 the controller instance More...
 
ControlVector< CONTROL_DIM, double > controlAction_
 
- Protected Attributes inherited from ct::core::System< STATE_DIM, double >
SYSTEM_TYPE type_
 type of system More...
 

Member Function Documentation

◆ clone()

virtual TestOscillator* TestOscillator::clone ( ) const
inlineoverridevirtual

deep copy

Implements ct::core::ControlledSystem< 2, 1 >.

◆ computeControlledDynamics()

virtual void TestOscillator::computeControlledDynamics ( const StateVector< 2 > &  state,
const double &  t,
const ControlVector< 1 > &  control,
StateVector< 2 > &  derivative 
)
inlinevirtual

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