#include <task-contact-force.hpp>
Public Member Functions | |
virtual const TSID_DISABLE_WARNING_PUSH ConstraintBase & | compute (const double t, ConstRefVector q, ConstRefVector v, Data &data, const std::vector< std::shared_ptr< ContactLevel > > *contacts)=0 |
virtual const TSID_DISABLE_WARNING_POP std::string & | getAssociatedContactName ()=0 |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | TaskContactForce (const std::string &name, RobotWrapper &robot) |
![]() | |
virtual const ConstraintBase & | compute (double t, ConstRefVector q, ConstRefVector v, Data &data)=0 |
virtual int | dim () const =0 |
Return the dimension of the task. \info should be overloaded in the child class. More... | |
virtual const ConstraintBase & | getConstraint () const =0 |
const std::string & | name () const |
void | name (const std::string &name) |
TaskBase (const std::string &name, RobotWrapper &robot) | |
virtual | ~TaskBase ()=default |
Additional Inherited Members | |
![]() | |
typedef math::ConstRefVector | ConstRefVector |
typedef pinocchio::Data | Data |
typedef robots::RobotWrapper | RobotWrapper |
![]() | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::ConstraintBase | ConstraintBase |
![]() | |
std::string | m_name |
RobotWrapper & | m_robot |
Reference on the robot model. More... | |
Definition at line 28 of file task-contact-force.hpp.
tsid::tasks::TaskContactForce::TaskContactForce | ( | const std::string & | name, |
RobotWrapper & | robot | ||
) |
Definition at line 24 of file task-contact-force.cpp.
|
pure virtual |
Contact force tasks have an additional compute method that takes as extra input argument the list of active contacts. This can be needed for force tasks that involve all contacts, such as the CoP task.
Implemented in tsid::tasks::TaskContactForceEquality, and tsid::tasks::TaskCopEquality.
|
pure virtual |
Return the name of the contact associated to this task if this task is associated to a specific contact. If this task is associated to multiple contact forces (all of them), returns an empty string.
Implemented in tsid::tasks::TaskCopEquality, and tsid::tasks::TaskContactForceEquality.