#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 |
CGripperEquippedEntity & | GetGripperEntity () |
cpShape * | GripperShape () |
CDynamics2DGrippable * | GetGrippee () |
cpConstraint * | GetConstraint () |
Real | GetExtension () const |
Returns the extension of the constraint. More... | |
void | CalculateAnchor (cpArbiter *pt_arb) |
void | Grip (CDynamics2DGrippable *pc_grippee) |
void | Release () |
Definition at line 26 of file dynamics2d_gripping.h.
typedef std::list<CDynamics2DGripper*> argos::CDynamics2DGripper::TList |
Definition at line 30 of file dynamics2d_gripping.h.
argos::CDynamics2DGripper::CDynamics2DGripper | ( | CDynamics2DEngine & | c_engine, |
CGripperEquippedEntity & | c_gripper_entity, | ||
cpShape * | pt_gripper_shape | ||
) |
Definition at line 19 of file dynamics2d_gripping.cpp.
argos::CDynamics2DGripper::~CDynamics2DGripper | ( | ) |
Definition at line 36 of file dynamics2d_gripping.cpp.
void argos::CDynamics2DGripper::CalculateAnchor | ( | cpArbiter * | pt_arb | ) |
Definition at line 54 of file dynamics2d_gripping.cpp.
|
inline |
Definition at line 60 of file dynamics2d_gripping.h.
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.
|
inline |
Definition at line 56 of file dynamics2d_gripping.h.
|
inline |
Definition at line 48 of file dynamics2d_gripping.h.
void argos::CDynamics2DGripper::Grip | ( | CDynamics2DGrippable * | pc_grippee | ) |
Definition at line 73 of file dynamics2d_gripping.cpp.
|
inline |
Definition at line 52 of file dynamics2d_gripping.h.
|
inline |
Definition at line 40 of file dynamics2d_gripping.h.
|
inline |
Definition at line 44 of file dynamics2d_gripping.h.
void argos::CDynamics2DGripper::Release | ( | ) |
Definition at line 95 of file dynamics2d_gripping.cpp.