25 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
29 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
72 throw std::runtime_error(
"getDerivativeU0() not implemented for the current controller");
87 throw std::runtime_error(
"getDerivativeUf() not implemented for the current controller");
clear all close all load ct GNMSLog0 mat reformat t
Controller(const Controller &other)
Copy constructor.
Definition: Controller.h:34
virtual void computeControl(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR &t, ControlVector< CONTROL_DIM, SCALAR > &controlAction)=0
Compute control signal.
virtual Controller * clone() const =0
Deep cloning.
Definition: ControlVector.h:12
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: StateVector.h:12
virtual ControlMatrix< CONTROL_DIM, SCALAR > getDerivativeU0(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR time)
Returns the the derivative of the control with respect to the initial control input u0...
Definition: Controller.h:69
Definition: ControlMatrix.h:12
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Controller()
Default constructor.
Definition: Controller.h:31
virtual ControlMatrix< CONTROL_DIM, SCALAR > getDerivativeUf(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR time)
Returns the the derivative of the control with respect to the final control input uF...
Definition: Controller.h:84
Interface class for all controllers.
Definition: Controller.h:26
virtual ~Controller()
Destructor.
Definition: Controller.h:37