22 #define HUMOTO_CONFIG_ENTRIES \ 23 HUMOTO_CONFIG_PARENT_CLASS(TaskILU) \ 24 HUMOTO_CONFIG_SCALAR_(fix_footsteps) 25 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 37 fix_footsteps_ =
false;
45 fix_footsteps_ = fix_footsteps;
60 Eigen::VectorXd &lb = getLowerBounds();
61 Eigen::VectorXd &ub = getUpperBounds();
63 I.resize(loc_var.length_);
64 lb.resize(loc_var.length_);
65 ub.resize(loc_var.length_);
69 I[i*2] = loc_var.offset_ + i*2;
70 I[i*2+1] = loc_var.offset_ + i*2 + 1;
81 lb.segment(i*2, 1) = ub.segment(i*2, 1);
82 lb.segment(i*2+1, 1) = ub.segment(i*2+1, 1);
86 lb.segment(i*2, 1) = ub.segment(i*2, 1);
87 ub.segment(i*2+1, 1) = lb.segment(i*2+1, 1);
100 std::size_t size_of_the_old_active_set = getActualActiveSet().size();
109 if (size_of_the_old_active_set == 0)
115 if (size_of_the_old_active_set == loc_var.
length_)
117 getActiveSetGuess() = getActualActiveSet();
121 if (size_of_the_old_active_set > loc_var.
length_)
123 Location loc_act_set(2, size_of_the_old_active_set - 2);
125 getActiveSetGuess().initialize(getActualActiveSet(), loc_act_set);
129 Location loc_act_set(0, size_of_the_old_active_set);
132 getActiveSetGuess().copyTo(loc_act_set, getActualActiveSet());
Abstract base class (for control problems)
etools::Matrix2 getFootPositionBounds(const std::size_t var_support_index) const
Get bounds on foot position.
Constraint is an equality (always active)
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
Eigen::Matrix< unsigned int, Eigen::Dynamic, 1 > IndexVector
static const char * FOOTPOS_VARIABLES_ID
Location getSolutionPartLocation(const std::string &id) const
Get location of a data in the solution vector.
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].
const WalkState & getWalkState(const std::size_t interval_index) const
Get walk state corresponding to the given interval.
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).
std::vector< std::size_t > variable_steps_indices_
humoto::wpg04::PreviewHorizon preview_horizon_