22 #define HUMOTO_CONFIG_ENTRIES \ 23 HUMOTO_CONFIG_PARENT_CLASS(TaskAB) 24 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 31 setGain(0.223606797749979);
43 :
TaskAB(
"TaskCoPVelocity", gain)
56 Eigen::MatrixXd &A = getA();
57 Eigen::VectorXd &b = getB();
69 b.noalias() = -getGain() * mpc.
sdz_;
Abstract base class (for control problems)
std::size_t getNumberOfVariables() const
Get total number of variables in the solution vector.
static const char * COP_VARIABLES_ID
void finalize()
This function is called automaticaly after reading a configuration file. Does nothing by default...
Eigen::Block< Eigen::MatrixXd > getMatrixPart(const std::string &id, Eigen::MatrixXd &matrix) const
Get part of a matrix corresponding to given part of the solution.
void setDefaults()
Set members to their default values.
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
virtual void setDefaults()
Set members to their default values.
static const char * FOOTPOS_VARIABLES_ID
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.
TaskCoPVelocity(const double gain=0.223606797749979)
void finalize()
This function is called automaticaly after reading a configuration file. Does nothing by default...
void form(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Form the task.