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

#include <tsid/tasks/task-joint-posture.hpp>

Inheritance diagram for tsid::tasks::TaskJointPosture:
Collaboration diagram for tsid::tasks::TaskJointPosture:

Public Types

typedef trajectories::TrajectorySample TrajectorySample
 
typedef math::Vector Vector
 
typedef math::VectorXi VectorXi
 
typedef math::ConstraintEquality ConstraintEquality
 
typedef pinocchio::Data Data
 
- Public Types inherited from tsid::tasks::TaskMotion
typedef trajectories::TrajectorySample TrajectorySample
 
- Public Types inherited from tsid::tasks::TaskBase
typedef math::ConstRefVector ConstRefVector
 
typedef pinocchio::Data Data
 
typedef robots::RobotWrapper RobotWrapper
 

Public Member Functions

 TaskJointPosture (const std::string &name, RobotWrapper &robot)
 
int dim () const override
 Return the dimension of the task. \info should be overloaded in the child class. More...
 
const ConstraintBasecompute (const double t, ConstRefVector q, ConstRefVector v, Data &data) override
 
const ConstraintBasegetConstraint () const override
 
void setReference (const TrajectorySample &ref)
 
const TrajectorySamplegetReference () const override
 
const VectorgetDesiredAcceleration () const override
 
Vector getAcceleration (ConstRefVector dv) const override
 
TSID_DEPRECATED const Vectormask () const
 
TSID_DEPRECATED void mask (const Vector &mask)
 
void setMask (math::ConstRefVector mask) override
 
const Vectorposition_error () const override
 
const Vectorvelocity_error () const override
 
const Vectorposition () const override
 
const Vectorvelocity () const override
 
const Vectorposition_ref () const override
 
const Vectorvelocity_ref () const override
 
const VectorKp ()
 
const VectorKd ()
 
void Kp (ConstRefVector Kp)
 
void Kd (ConstRefVector Kp)
 
- Public Member Functions inherited from tsid::tasks::TaskMotion
 TaskMotion (const std::string &name, RobotWrapper &robot)
 
virtual const VectorgetMask () const
 
virtual bool hasMask ()
 
- Public Member Functions inherited from tsid::tasks::TaskBase
 TaskBase (const std::string &name, RobotWrapper &robot)
 
virtual ~TaskBase ()=default
 
const std::string & name () const
 
void name (const std::string &name)
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index Index
 
- Public Attributes inherited from tsid::tasks::TaskMotion
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Vector Vector
 
- Public Attributes inherited from tsid::tasks::TaskBase
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::ConstraintBase ConstraintBase
 

Protected Attributes

Vector m_Kp
 
Vector m_Kd
 
Vector m_p_error
 
Vector m_v_error
 
Vector m_p
 
Vector m_v
 
Vector m_a_des
 
VectorXi m_activeAxes
 
TrajectorySample m_ref
 
Vector m_ref_q_augmented
 
ConstraintEquality m_constraint
 
- Protected Attributes inherited from tsid::tasks::TaskMotion
Vector m_mask
 
Vector m_dummy
 
trajectories::TrajectorySample TrajectorySample_dummy
 
- Protected Attributes inherited from tsid::tasks::TaskBase
std::string m_name
 
RobotWrapperm_robot
 Reference on the robot model. More...
 

Member Typedef Documentation

◆ ConstraintEquality

◆ Data

typedef pinocchio::Data tsid::tasks::TaskJointPosture::Data

◆ TrajectorySample

◆ Vector

◆ VectorXi

Constructor & Destructor Documentation

◆ TaskJointPosture()

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

Member Function Documentation

◆ compute()

const ConstraintBase & tsid::tasks::TaskJointPosture::compute ( const double  t,
ConstRefVector  q,
ConstRefVector  v,
Data data 
)
overridevirtual

Implements tsid::tasks::TaskBase.

◆ dim()

int tsid::tasks::TaskJointPosture::dim ( ) const
overridevirtual

Return the dimension of the task. \info should be overloaded in the child class.

Implements tsid::tasks::TaskBase.

◆ getAcceleration()

Vector tsid::tasks::TaskJointPosture::getAcceleration ( ConstRefVector  dv) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ getConstraint()

const ConstraintBase & tsid::tasks::TaskJointPosture::getConstraint ( ) const
overridevirtual

Implements tsid::tasks::TaskBase.

◆ getDesiredAcceleration()

const Vector & tsid::tasks::TaskJointPosture::getDesiredAcceleration ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ getReference()

const TrajectorySample & tsid::tasks::TaskJointPosture::getReference ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ Kd() [1/2]

const Vector & tsid::tasks::TaskJointPosture::Kd ( )

◆ Kd() [2/2]

void tsid::tasks::TaskJointPosture::Kd ( ConstRefVector  Kp)

◆ Kp() [1/2]

const Vector & tsid::tasks::TaskJointPosture::Kp ( )

◆ Kp() [2/2]

void tsid::tasks::TaskJointPosture::Kp ( ConstRefVector  Kp)

◆ mask() [1/2]

const Vector & tsid::tasks::TaskJointPosture::mask ( ) const

◆ mask() [2/2]

void tsid::tasks::TaskJointPosture::mask ( const Vector mask)

◆ position()

const Vector & tsid::tasks::TaskJointPosture::position ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ position_error()

const Vector & tsid::tasks::TaskJointPosture::position_error ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ position_ref()

const Vector & tsid::tasks::TaskJointPosture::position_ref ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ setMask()

void tsid::tasks::TaskJointPosture::setMask ( math::ConstRefVector  mask)
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ setReference()

void tsid::tasks::TaskJointPosture::setReference ( const TrajectorySample ref)

◆ velocity()

const Vector & tsid::tasks::TaskJointPosture::velocity ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ velocity_error()

const Vector & tsid::tasks::TaskJointPosture::velocity_error ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

◆ velocity_ref()

const Vector & tsid::tasks::TaskJointPosture::velocity_ref ( ) const
overridevirtual

Reimplemented from tsid::tasks::TaskMotion.

Member Data Documentation

◆ Index

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef math::Index tsid::tasks::TaskJointPosture::Index

◆ m_a_des

Vector tsid::tasks::TaskJointPosture::m_a_des
protected

◆ m_activeAxes

VectorXi tsid::tasks::TaskJointPosture::m_activeAxes
protected

◆ m_constraint

ConstraintEquality tsid::tasks::TaskJointPosture::m_constraint
protected

◆ m_Kd

Vector tsid::tasks::TaskJointPosture::m_Kd
protected

◆ m_Kp

Vector tsid::tasks::TaskJointPosture::m_Kp
protected

◆ m_p

Vector tsid::tasks::TaskJointPosture::m_p
protected

◆ m_p_error

Vector tsid::tasks::TaskJointPosture::m_p_error
protected

◆ m_ref

TrajectorySample tsid::tasks::TaskJointPosture::m_ref
protected

◆ m_ref_q_augmented

Vector tsid::tasks::TaskJointPosture::m_ref_q_augmented
protected

◆ m_v

Vector tsid::tasks::TaskJointPosture::m_v
protected

◆ m_v_error

Vector tsid::tasks::TaskJointPosture::m_v_error
protected

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