21 #define HUMOTO_CONFIG_ENTRIES \ 22 HUMOTO_CONFIG_PARENT_CLASS(TaskAB) \ 23 HUMOTO_CONFIG_SCALAR_(k_position_gain) 24 #include HUMOTO_CONFIG_DEFINE_ACCESSORS 34 const double k_position_gain) :
TaskAB(id, gain)
36 k_position_gain_ = k_position_gain;
43 k_position_gain_ = 0.0;
56 const std::string &name =
"task")
const 60 logger.log(
LogEntryName(subname).add(
"k_position_gain"), k_position_gain_);
69 template <
int t_features>
89 Eigen::MatrixXd &A = getA();
90 Eigen::VectorXd &b = getB();
93 model.getBaseCoMJacobian(A);
109 #ifdef HUMOTO_DOXYGEN_PROCESSING 139 Eigen::MatrixXd &A = getA();
140 Eigen::VectorXd &b = getB();
143 model.getBaseCoMJacobian(A);
144 A.conservativeResize(2, A.cols());
146 etools::Vector3 com = model.getBaseCoM();
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.
virtual void logTask(humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="task") const
Log task.
#define HUMOTO_GLOBAL_LOGGER_IF_DEFINED
etools::Vector3 base_com_position_
Analog of 'sol_structure' struct in Octave code. [determine_solution_structure.m].
virtual void setDefaults()
Set members to their default values.
Represents log entry name.
TaskBaseCoMTrackingBase(const std::string &id, const double gain, const double k_position_gain)
Threaded logger: any data sent to this logger is wrapped in a message and pushed to a queue...
The root namespace of HuMoTo.
virtual void setDefaults()
Set members to their default values.
TaskBaseCoMTracking(const double gain=1.0, const double k_position_gain=1.0)
humoto::pepper_ik::MotionParameters motion_parameters_
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 logTask(humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="task") const
Log task.
LogEntryName & add(const char *name)
extends entry name with a subname
bool isApproximatelyEqual(const double var1, const double var2, const double tol=humoto::g_generic_tolerance)
Returns true if the difference between two given variables is below the given tolerance.
TaskBaseCoMTracking(const double gain=1.0, const double k_position_gain=1.0)
void form(const humoto::SolutionStructure &sol_structure, const humoto::Model &model_base, const humoto::ControlProblem &control_problem)
Form the task.