This class reduces the cost of identifying the geometry pair. This is usefull for repeated shape-shape queries. More...
#include <contact_patch.h>
Public Member Functions | |
ComputeContactPatch (const CollisionGeometry *o1, const CollisionGeometry *o2) | |
Default constructor from two Collision Geometries. More... | |
bool | operator!= (const ComputeContactPatch &other) const |
void | operator() (const Transform3s &tf1, const Transform3s &tf2, const CollisionResult &collision_result, const ContactPatchRequest &request, ContactPatchResult &result) const |
bool | operator== (const ComputeContactPatch &other) const |
virtual | ~ComputeContactPatch ()=default |
Protected Member Functions | |
virtual void | run (const Transform3s &tf1, const Transform3s &tf2, const CollisionResult &collision_result, const ContactPatchRequest &request, ContactPatchResult &result) const |
Protected Attributes | |
ContactPatchSolver | csolver |
ContactPatchFunctionMatrix::ContactPatchFunc | func |
const CollisionGeometry * | o1 |
const CollisionGeometry * | o2 |
bool | swap_geoms |
This class reduces the cost of identifying the geometry pair. This is usefull for repeated shape-shape queries.
collide
or after ComputeCollision
.Definition at line 77 of file coal/contact_patch.h.
coal::ComputeContactPatch::ComputeContactPatch | ( | const CollisionGeometry * | o1, |
const CollisionGeometry * | o2 | ||
) |
Default constructor from two Collision Geometries.
Definition at line 107 of file src/contact_patch.cpp.
|
virtualdefault |
|
inline |
Definition at line 92 of file coal/contact_patch.h.
void coal::ComputeContactPatch::operator() | ( | const Transform3s & | tf1, |
const Transform3s & | tf2, | ||
const CollisionResult & | collision_result, | ||
const ContactPatchRequest & | request, | ||
ContactPatchResult & | result | ||
) | const |
Definition at line 160 of file src/contact_patch.cpp.
|
inline |
Definition at line 87 of file coal/contact_patch.h.
|
protectedvirtual |
Definition at line 139 of file src/contact_patch.cpp.
|
mutableprotected |
Definition at line 106 of file coal/contact_patch.h.
|
protected |
Definition at line 108 of file coal/contact_patch.h.
|
mutableprotected |
Definition at line 103 of file coal/contact_patch.h.
|
mutableprotected |
Definition at line 104 of file coal/contact_patch.h.
|
protected |
Definition at line 109 of file coal/contact_patch.h.