19 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
24 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
84 const SCALAR time)
override;
ct::core::ControlVector< control_dim > u
A constant controller.
Definition: ConstantController.h:20
ConstantController< STATE_DIM, CONTROL_DIM, SCALAR > * clone() const override
Clone operator.
Definition: ConstantController-impl.h:36
clear all close all load ct GNMSLog0 mat reformat t
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ConstantController()
Default constructor.
Definition: ConstantController-impl.h:13
Definition: ControlVector.h:12
CppAD::AD< CppAD::cg::CG< double > > SCALAR
constexpr size_t n
Definition: MatrixInversionTest.cpp:14
Definition: StateVector.h:12
Interface class for all controllers.
Definition: DiscreteController.h:22
void setControl(const ControlVector< CONTROL_DIM, SCALAR > &u)
Sets the control signal.
Definition: ConstantController-impl.h:58
virtual ControlMatrix< CONTROL_DIM, SCALAR > getDerivativeU0(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR time) override
Returns the the derivative of the control with respect to the initial control input u0...
Definition: ConstantController-impl.h:70
const ControlVector< CONTROL_DIM, SCALAR > & getControl() const
Get the fixed control signal.
Definition: ConstantController-impl.h:64
void computeControl(const StateVector< STATE_DIM, SCALAR > &state, const SCALAR &t, ControlVector< CONTROL_DIM, SCALAR > &controlAction) override
Computes current control.
Definition: ConstantController-impl.h:42
virtual ~ConstantController()
Destructor.
Definition: ConstantController-impl.h:31
Definition: ControlMatrix.h:12
Interface class for all controllers.
Definition: Controller.h:26