23 template <
size_t STATE_DIM,
size_t DIST_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
47 const SCALAR time)
override;
52 const SCALAR time)
override;
58 std::shared_ptr<ct::core::Controller<STATE_DIM, CONTROL_DIM, SCALAR>> controller_;
void computeControl(const ct::core::StateVector< AUGMENTED_DIM, SCALAR > &state, const SCALAR &t, ct::core::ControlVector< CONTROL_DIM, SCALAR > &controlAction) override
Implementation of the base computeControl method.
Definition: DisturbedSystemController-impl.h:33
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
ct::core::ControlMatrix< CONTROL_DIM, SCALAR > getDerivativeU0(const ct::core::StateVector< AUGMENTED_DIM, SCALAR > &state, const SCALAR time) override
Implementation of the base getDerivativeU0 method.
Definition: DisturbedSystemController-impl.h:48
CppAD::AD< CppAD::cg::CG< double > > SCALAR
static const size_t AUGMENTED_DIM
Definition: DisturbedSystemController.h:27
void setController(std::shared_ptr< ct::core::Controller< STATE_DIM, CONTROL_DIM, SCALAR >> controller)
Sets the nominal controller.
Definition: DisturbedSystemController-impl.h:69
ct::core::ControlMatrix< CONTROL_DIM, SCALAR > getDerivativeUf(const ct::core::StateVector< AUGMENTED_DIM, SCALAR > &state, const SCALAR time) override
Implementation of the base getDerivativeUf method.
Definition: DisturbedSystemController-impl.h:59
DisturbedSystemController * clone() const override
Clone method.
Definition: DisturbedSystemController-impl.h:27
DisturbedSystemController(std::shared_ptr< ct::core::Controller< STATE_DIM, CONTROL_DIM, SCALAR >> controller=nullptr)
Constructor. Takes in the nominal controller.
Definition: DisturbedSystemController-impl.h:12
Disturbed controller allows us to augment the controller so that all the CT interfaces and dimensions...
Definition: DisturbedSystemController.h:24