21 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
25 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
56 virtual void computeControl(
const state_vector_t& state,
const int n, control_vector_t& controlAction) = 0;
virtual DiscreteController * clone() const =0
Deep cloning.
DiscreteController(const DiscreteController &other)
Copy constructor.
Definition: DiscreteController.h:34
DiscreteController()
Default constructor.
Definition: DiscreteController.h:31
Definition: ControlVector.h:12
virtual ~DiscreteController()
Destructor.
Definition: DiscreteController.h:37
constexpr size_t n
Definition: MatrixInversionTest.cpp:14
Definition: StateVector.h:12
Interface class for all controllers.
Definition: DiscreteController.h:22
ControlVector< CONTROL_DIM, SCALAR > control_vector_t
Definition: DiscreteController.h:28
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef StateVector< STATE_DIM, SCALAR > state_vector_t
Definition: DiscreteController.h:27
virtual void computeControl(const state_vector_t &state, const int n, control_vector_t &controlAction)=0
Compute control signal.