1 #ifndef CONTACT_UTILS_H 2 #define CONTACT_UTILS_H 4 #include <KrisLibrary/robotics/Contact.h> 5 #include <KrisLibrary/robotics/RobotWithGeometry.h> 18 void GetFlatContacts(RobotWithGeometry& robot,Real tol,ContactFormation& contacts);
26 void GetFlatContacts(RobotWithGeometry& robot,
int link,Real tol,vector<ContactPoint>& contacts);
59 void LocalContactsToHold(
const vector<ContactPoint>& contacts,
int link,
const RobotKinematics3D& robot,
Hold& hold);
69 void ClusterContacts(vector<ContactPoint>& cps,
int numClusters,Real clusterNormalScale=0.1,Real clusterFrictionScale=0.1);
77 void CHContacts(vector<ContactPoint>& cp,Real ntol,Real xtol);
83 int ClosestContact(
const ContactPoint& p,
const Meshing::TriMesh& mesh,ContactPoint& closest,Real normalScale=0.1);
A single contact between the robot and the environment.
Definition: Hold.h:26
A collection of holds.
Definition: Stance.h:19
The main world class containing multiple robots, objects, and static geometries (terrains). Lights and other viewport information may also be stored here.
Definition: World.h:20