This class reduces the cost of identifying the geometry pair. This is mostly useful for repeated shape-shape queries. More...
#include <collision.h>
Public Member Functions | |
ComputeCollision (const CollisionGeometry *o1, const CollisionGeometry *o2) | |
Default constructor from two Collision Geometries. More... | |
bool | operator!= (const ComputeCollision &other) const |
std::size_t | operator() (const Transform3s &tf1, const Transform3s &tf2, const CollisionRequest &request, CollisionResult &result) const |
bool | operator== (const ComputeCollision &other) const |
virtual | ~ComputeCollision () |
Protected Member Functions | |
virtual std::size_t | run (const Transform3s &tf1, const Transform3s &tf2, const CollisionRequest &request, CollisionResult &result) const |
Protected Attributes | |
CollisionFunctionMatrix::CollisionFunc | func |
const CollisionGeometry * | o1 |
const CollisionGeometry * | o2 |
GJKSolver | solver |
bool | swap_geoms |
This class reduces the cost of identifying the geometry pair. This is mostly useful for repeated shape-shape queries.
Definition at line 78 of file coal/collision.h.
coal::ComputeCollision::ComputeCollision | ( | const CollisionGeometry * | o1, |
const CollisionGeometry * | o2 | ||
) |
Default constructor from two Collision Geometries.
Definition at line 131 of file src/collision.cpp.
|
inlinevirtual |
Definition at line 95 of file coal/collision.h.
|
inline |
Definition at line 91 of file coal/collision.h.
std::size_t coal::ComputeCollision::operator() | ( | const Transform3s & | tf1, |
const Transform3s & | tf2, | ||
const CollisionRequest & | request, | ||
CollisionResult & | result | ||
) | const |
Definition at line 186 of file src/collision.cpp.
|
inline |
Definition at line 87 of file coal/collision.h.
|
protectedvirtual |
Definition at line 159 of file src/collision.cpp.
|
protected |
Definition at line 107 of file coal/collision.h.
|
mutableprotected |
Definition at line 95 of file coal/collision.h.
|
mutableprotected |
Definition at line 103 of file coal/collision.h.
|
mutableprotected |
Definition at line 105 of file coal/collision.h.
|
protected |
Definition at line 108 of file coal/collision.h.