42 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
46 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 typedef typename std::shared_ptr<SwitchedControlledSystem<STATE_DIM, CONTROL_DIM, SCALAR>>
Ptr;
49 typedef typename std::shared_ptr<ControlledSystem<STATE_DIM, CONTROL_DIM, SCALAR>>
SystemPtr;
107 switchedSystems_[mode]->computeControlledDynamics(state, t, control, derivative);
std::vector< T, Alloc > Switched
Declaring Switched alias such that we can write Switched<System>
Definition: Switching.h:12
SwitchedSystems switchedSystems_
switched system container
Definition: SwitchedControlledSystem.h:108
SCALAR time_t
the type of the time variable
Definition: System.h:44
SwitchedControlledSystem(const SwitchedControlledSystem &arg)
copy constructor
Definition: SwitchedControlledSystem.h:82
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef std::shared_ptr< SwitchedControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR > > Ptr
Definition: SwitchedControlledSystem.h:48
virtual void computeControlledDynamics(const StateVector< STATE_DIM, SCALAR > &state, const time_t &t, const ControlVector< CONTROL_DIM, SCALAR > &control, StateVector< STATE_DIM, SCALAR > &derivative) override
Definition: SwitchedControlledSystem.h:101
SwitchedControlledSystem(const SwitchedSystems &switchedSystems, const ContinuousModeSequence &continuousModeSequence, const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
default constructor
Definition: SwitchedControlledSystem.h:60
Switched< SystemPtr > SwitchedSystems
Definition: SwitchedControlledSystem.h:50
System< STATE_DIM, SCALAR > Base
Definition: SwitchedControlledSystem.h:52
Base::time_t time_t
Definition: SwitchedControlledSystem.h:53
Definition: ControlVector.h:12
virtual SwitchedControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR > * clone() const override
deep copy
Definition: SwitchedControlledSystem.h:96
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: StateVector.h:12
virtual ~SwitchedControlledSystem()
destructor
Definition: SwitchedControlledSystem.h:93
SwitchedControlledSystem(const SwitchedSystems &switchedSystems, const ContinuousModeSequence &continuousModeSequence, std::shared_ptr< ct::core::Controller< STATE_DIM, CONTROL_DIM, SCALAR >> controller, const SYSTEM_TYPE &type=SYSTEM_TYPE::GENERAL)
constructor
Definition: SwitchedControlledSystem.h:73
SYSTEM_TYPE
type of system
Definition: System.h:15
A general, switched non-linear dynamic system with a control input.
Definition: SwitchedControlledSystem.h:43
Phase getPhaseFromTime(Time time) const
get phase pointer from time
Definition: Switching.h:68
any non-specific system
Definition: System.h:17
Interface class for a general system described by an ordinary differential equation (ODE) ...
Definition: System.h:38
std::shared_ptr< ControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR > > SystemPtr
Definition: SwitchedControlledSystem.h:49
A general, non-linear dynamic system with a control input.
Definition: ControlledSystem.h:46
Interface class for all controllers.
Definition: Controller.h:26
ContinuousModeSequence continuousModeSequence_
the prespecified mode sequence
Definition: SwitchedControlledSystem.h:112