6#include <base/Eigen.hpp>
7#include <base/Time.hpp>
8#include <base/NamedVector.hpp>
Defines a task in the whole body control problem. Valid Configurations are e.g.
Definition TaskConfig.hpp:39
Abstract class to represent a generic task for a WBC optimization problem.
Definition Task.hpp:16
base::VectorXd y_ref
Definition Task.hpp:63
void reset()
Reset task variables to initial values.
Definition Task.cpp:30
virtual void update(RobotModelPtr robot_model)=0
Update Task matrices and vectors.
Task()
Default constructor.
Definition Task.cpp:7
void setWeights(const base::VectorXd &weights)
Set task weights.
Definition Task.cpp:54
void setActivation(const double activation)
Set task activation.
Definition Task.cpp:69
int timeout
Definition Task.hpp:83
double activation
Definition Task.hpp:79
base::VectorXd weights
Definition Task.hpp:72
base::VectorXd weights_root
Definition Task.hpp:76
base::Time time
Definition Task.hpp:56
~Task()
Definition Task.cpp:26
base::MatrixXd Aw
Definition Task.hpp:89
base::VectorXd y_ref_root
Definition Task.hpp:67
base::MatrixXd A
Definition Task.hpp:86
TaskConfig config
Definition Task.hpp:59
void checkTimeout()
Check if the task is in timeout and set the timeout flag accordingly. A task is in timeout if.
Definition Task.cpp:48
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< Task > TaskPtr
Definition Task.hpp:93
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:204