4 #include <KrisLibrary/robotics/Contact.h> 5 #include <KrisLibrary/robotics/IK.h> 31 void Add(
const Grasp& grasp);
32 void SetHold(
const Hold& h);
33 void SetStance(
const Stance& h);
34 void GetHold(
Hold& h)
const;
35 void GetStance(
Stance& s)
const;
36 void GetContactFormation(ContactFormation& s)
const;
37 void Transform(
const RigidTransform& T);
38 void SetFixed(Vector& q)
const;
40 bool Load(TiXmlElement* e);
41 bool Save(TiXmlElement* e);
48 vector<Real> fixedValues;
49 vector<int> fixedDofs;
53 vector<int> contactLinks;
54 vector<Vector3> forces;
A collection of holds.
Definition: Stance.h:20
size_t NumConstraints() const
Returns the number of constraints touching the object.
Definition: Grasp.h:23
vector< IKGoal > constraints
describes constraints on robot configuration relative to object
Definition: Grasp.h:47
bool IsSimple() const
A grasp is simple if it's a rigid attachment to a single robot link.
Definition: Grasp.h:26
vector< ContactPoint > contacts
optional: describes contact state
Definition: Grasp.h:52
int objectIndex
index of the robot and object – object may be -1
Definition: Grasp.h:44
A single contact between the robot and the environment.
Definition: Hold.h:28
Structures defining the finalized contacts used in stances.
Slightly more sophisticated than a Stance, a Grasp allows some of the robot's degrees of freedom to b...
Definition: Grasp.h:17
Definition: ContactDistance.h:6