22 #define HUMOTO_CONFIG_ENTRIES \ 23 HUMOTO_CONFIG_PARENT_CLASS(TaskILU) 24 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 50 Eigen::VectorXd &lb = getLowerBounds();
51 Eigen::VectorXd &ub = getUpperBounds();
54 I.resize(loc_var.length_);
55 lb.resize(loc_var.length_);
56 ub.resize(loc_var.length_);
59 for (std::size_t i = 0; i < loc_var.length_/2; ++i)
61 I[i*2] = loc_var.offset_ + i*2;
62 I[i*2+1] = loc_var.offset_ + i*2 + 1;
78 if (getActualActiveSet().size() == 0)
85 "The number of CoP variables is not supposed to change.");
87 getActiveSetGuess() = getActualActiveSet();
Abstract base class (for control problems)
void form(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Form the task.
static const char * COP_VARIABLES_ID
#define HUMOTO_ASSERT(condition, message)
void guessActiveSet(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Initialize active set guess with defaults.
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
etools::Matrix2 getCoPBounds(const std::size_t interval_index) const
Get CoP bounds.
Eigen::Matrix< unsigned int, Eigen::Dynamic, 1 > IndexVector
Location getSolutionPartLocation(const std::string &id) const
Get location of a data in the solution vector.
void setDefaults()
Set members to their default values.
Model Predictive Control problem for walking pattern generation [determine_solution_structure.m, form_rotation_matrices.m, form_foot_pos_matrices.m, form_condensing_matrices.m].
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.
virtual void setDefaults()
Set members to their default values.
Location of a data chunk (offset + length).
humoto::wpg04::PreviewHorizon preview_horizon_