38 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
43 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
74 const control_vector_array_t&
uff,
75 const feedback_array_t&
K,
93 virtual void computeControl(
const state_vector_t& state,
const SCALAR&
t, control_vector_t& controlAction)
override;
104 virtual void computeControl(
const state_vector_t& state,
const int n, control_vector_t& controlAction)
override;
StateTrajectory< STATE_DIM, SCALAR > x_ref_
Definition: StateFeedbackController.h:153
An discrete array (vector) of a particular data type.
Definition: DiscreteArray.h:22
const tpl::TimeArray< SCALAR > & time() const
get time array
Definition: StateFeedbackController-impl.h:97
StateTrajectory< STATE_DIM, SCALAR > & getReferenceStateTrajectory()
get a reference to the feedforward trajectory
Definition: StateFeedbackController-impl.h:104
StateFeedbackController()
default constructor
Definition: StateFeedbackController.h:56
const DiscreteArray< FeedbackMatrix< STATE_DIM, CONTROL_DIM, SCALAR > > & K() const
get feedback array (without timings)
Definition: StateFeedbackController-impl.h:91
ControlVectorArray< CONTROL_DIM, SCALAR > control_vector_array_t
Definition: StateFeedbackController.h:52
clear all close all load ct GNMSLog0 mat reformat t
const DiscreteArray< state_vector_t > & x_ref() const
get reference state vector array (without timings)
Definition: StateFeedbackController-impl.h:77
FeedbackTrajectory< STATE_DIM, CONTROL_DIM, SCALAR > & getFeedbackTrajectory()
get a reference to the feedback trajectory
Definition: StateFeedbackController-impl.h:132
Definition: ControlVector.h:12
CppAD::AD< CppAD::cg::CG< double > > SCALAR
virtual ~StateFeedbackController()
destructor
Definition: StateFeedbackController.h:81
virtual void computeControl(const state_vector_t &state, const SCALAR &t, control_vector_t &controlAction) override
computes the control action in the continuous case
Definition: StateFeedbackController-impl.h:29
InterpolationType
Definition: Interpolation.h:14
A linear state feedback controller.
Definition: StateFeedbackController.h:39
A discrete, timed trajectory with interpolation.
Definition: DiscreteTrajectoryBase.h:31
constexpr size_t n
Definition: MatrixInversionTest.cpp:14
const DiscreteArray< control_vector_t > & uff() const
get feedforward array (without timings)
Definition: StateFeedbackController-impl.h:84
Interface class for all controllers.
Definition: DiscreteController.h:22
DiscreteBase::control_vector_t control_vector_t
Definition: StateFeedbackController.h:49
An array in time.
Definition: TimeArray.h:22
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Controller< STATE_DIM, CONTROL_DIM, SCALAR > ContinuousBase
Definition: StateFeedbackController.h:45
ControlTrajectory< CONTROL_DIM, SCALAR > uff_
state reference trajectory
Definition: StateFeedbackController.h:154
void update(const DiscreteArray< state_vector_t > &x_ref, const DiscreteArray< control_vector_t > &uff, const DiscreteArray< FeedbackMatrix< STATE_DIM, CONTROL_DIM, SCALAR >> &K, const tpl::TimeArray< SCALAR > &t)
updates the controller
Definition: StateFeedbackController-impl.h:45
void extractControlTrajectory(const StateTrajectory< STATE_DIM, SCALAR > &x_traj, ControlTrajectory< CONTROL_DIM, SCALAR > &u_traj)
extracts a physically meaningful control trajectory from the given state-feedback law and a reference...
Definition: StateFeedbackController-impl.h:145
StateFeedbackController< STATE_DIM, CONTROL_DIM, SCALAR > * clone() const override
deep cloning
Definition: StateFeedbackController-impl.h:69
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef StateVector< STATE_DIM, SCALAR > state_vector_t
Definition: DiscreteController.h:27
Definition: FeedbackMatrix.h:12
FeedbackTrajectory< STATE_DIM, CONTROL_DIM, SCALAR > K_
feedforward control trajectory
Definition: StateFeedbackController.h:155
StateVectorArray< STATE_DIM, SCALAR > state_vector_array_t
Definition: StateFeedbackController.h:51
DiscreteController< STATE_DIM, CONTROL_DIM, SCALAR > DiscreteBase
Definition: StateFeedbackController.h:46
DiscreteBase::state_vector_t state_vector_t
Definition: StateFeedbackController.h:48
FeedbackArray< STATE_DIM, CONTROL_DIM, SCALAR > feedback_array_t
Definition: StateFeedbackController.h:53
Zero-Order hold.
Definition: Interpolation.h:16
ControlTrajectory< CONTROL_DIM, SCALAR > & getFeedforwardTrajectory()
get a reference to the feedforward trajectory
Definition: StateFeedbackController-impl.h:118
Interface class for all controllers.
Definition: Controller.h:26