argos::CDynamics2DGripper Class Reference

#include <dynamics2d_gripping.h>

Public Types

typedef std::list< CDynamics2DGripper * > TList
 

Public Member Functions

 CDynamics2DGripper (CDynamics2DEngine &c_engine, CGripperEquippedEntity &c_gripper_entity, cpShape *pt_gripper_shape)
 
 ~CDynamics2DGripper ()
 
bool IsGripping () const
 
bool IsLocked () const
 
CGripperEquippedEntityGetGripperEntity ()
 
cpShape * GripperShape ()
 
CDynamics2DGrippableGetGrippee ()
 
cpConstraint * GetConstraint ()
 
Real GetExtension () const
 Returns the extension of the constraint. More...
 
void CalculateAnchor (cpArbiter *pt_arb)
 
void Grip (CDynamics2DGrippable *pc_grippee)
 
void Release ()
 

Detailed Description

Definition at line 26 of file dynamics2d_gripping.h.

Member Typedef Documentation

◆ TList

Definition at line 30 of file dynamics2d_gripping.h.

Constructor & Destructor Documentation

◆ CDynamics2DGripper()

argos::CDynamics2DGripper::CDynamics2DGripper ( CDynamics2DEngine c_engine,
CGripperEquippedEntity c_gripper_entity,
cpShape *  pt_gripper_shape 
)

Definition at line 19 of file dynamics2d_gripping.cpp.

◆ ~CDynamics2DGripper()

argos::CDynamics2DGripper::~CDynamics2DGripper ( )

Definition at line 36 of file dynamics2d_gripping.cpp.

Member Function Documentation

◆ CalculateAnchor()

void argos::CDynamics2DGripper::CalculateAnchor ( cpArbiter *  pt_arb)

Definition at line 54 of file dynamics2d_gripping.cpp.

◆ GetConstraint()

cpConstraint* argos::CDynamics2DGripper::GetConstraint ( )
inline

Definition at line 60 of file dynamics2d_gripping.h.

◆ GetExtension()

Real argos::CDynamics2DGripper::GetExtension ( ) const

Returns the extension of the constraint.

It is calculated as

AnchorDistance / RestLength

where AnchorDistance is the current distance between the anchors attached to the gripper and the grippee.

Definition at line 43 of file dynamics2d_gripping.cpp.

◆ GetGrippee()

CDynamics2DGrippable* argos::CDynamics2DGripper::GetGrippee ( )
inline

Definition at line 56 of file dynamics2d_gripping.h.

◆ GetGripperEntity()

CGripperEquippedEntity& argos::CDynamics2DGripper::GetGripperEntity ( )
inline

Definition at line 48 of file dynamics2d_gripping.h.

◆ Grip()

void argos::CDynamics2DGripper::Grip ( CDynamics2DGrippable pc_grippee)

Definition at line 73 of file dynamics2d_gripping.cpp.

◆ GripperShape()

cpShape* argos::CDynamics2DGripper::GripperShape ( )
inline

Definition at line 52 of file dynamics2d_gripping.h.

◆ IsGripping()

bool argos::CDynamics2DGripper::IsGripping ( ) const
inline

Definition at line 40 of file dynamics2d_gripping.h.

◆ IsLocked()

bool argos::CDynamics2DGripper::IsLocked ( ) const
inline

Definition at line 44 of file dynamics2d_gripping.h.

◆ Release()

void argos::CDynamics2DGripper::Release ( )

Definition at line 95 of file dynamics2d_gripping.cpp.