tsid  1.8.0
Efficient Task Space Inverse Dynamics for Multi-body Systems based on Pinocchio
tsid::tasks::TaskBase Class Referenceabstract

Base template of a Task. Each class is defined according to a constant model of a robot. More...

#include <tsid/tasks/task-base.hpp>

Inheritance diagram for tsid::tasks::TaskBase:
Collaboration diagram for tsid::tasks::TaskBase:

Public Types

typedef math::ConstRefVector ConstRefVector
 
typedef pinocchio::Data Data
 
typedef robots::RobotWrapper RobotWrapper
 

Public Member Functions

 TaskBase (const std::string &name, RobotWrapper &robot)
 
virtual ~TaskBase ()=default
 
const std::string & name () const
 
void name (const std::string &name)
 
virtual int dim () const =0
 Return the dimension of the task. \info should be overloaded in the child class. More...
 
virtual const ConstraintBasecompute (double t, ConstRefVector q, ConstRefVector v, Data &data)=0
 
virtual const ConstraintBasegetConstraint () const =0
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::ConstraintBase ConstraintBase
 

Protected Attributes

std::string m_name
 
RobotWrapperm_robot
 Reference on the robot model. More...
 

Detailed Description

Base template of a Task. Each class is defined according to a constant model of a robot.

Member Typedef Documentation

◆ ConstRefVector

◆ Data

typedef pinocchio::Data tsid::tasks::TaskBase::Data

◆ RobotWrapper

Constructor & Destructor Documentation

◆ TaskBase()

tsid::tasks::TaskBase::TaskBase ( const std::string &  name,
RobotWrapper robot 
)

◆ ~TaskBase()

virtual tsid::tasks::TaskBase::~TaskBase ( )
virtualdefault

Member Function Documentation

◆ compute()

◆ dim()

◆ getConstraint()

◆ name() [1/2]

const std::string & tsid::tasks::TaskBase::name ( ) const

◆ name() [2/2]

void tsid::tasks::TaskBase::name ( const std::string &  name)

Member Data Documentation

◆ ConstraintBase

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::ConstraintBase tsid::tasks::TaskBase::ConstraintBase

◆ m_name

std::string tsid::tasks::TaskBase::m_name
protected

◆ m_robot

RobotWrapper& tsid::tasks::TaskBase::m_robot
protected

Reference on the robot model.


The documentation for this class was generated from the following files: