35 Eigen::MatrixXd &A = getA();
36 Eigen::VectorXd &lb = getLowerBounds();
37 Eigen::VectorXd &ub = getUpperBounds();
39 A.noalias() = mpc.
Apd_;
69 if (getActualActiveSet().size() == 0)
76 "The number of body position variables is not supposed to change.");
78 getActiveSetGuess() = getActualActiveSet();
Abstract base class (for control problems)
void guessActiveSet(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Initialize active set guess with defaults.
std::size_t getPreviewHorizonLength() const
Get preview horizon length.
virtual void guessActiveSet(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Initialize active set guess with defaults.
#define HUMOTO_ASSERT(condition, message)
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
EIGEN_DEFAULT_DENSE_INDEX_TYPE EigenIndex
etools::Matrix2 getBodyBounds(const std::size_t interval_index) const
Get body bounds.
std::size_t sampling_time_ms_
Sampling time in milliseconds (T_ms)
std::size_t subsampling_time_ms_
Subsampling time in milliseconds (Ts_ms)
Task for bounding body position to a square.
The root namespace of HuMoTo.
Instances of this class are passed to a virtual method 'humoto::TaskBase::form()', so even though this class is basically useless in its present form we cannot avoid its definition using a template.
void form(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Form the task.