35 #ifndef HPP_FCL_PYTHON_BROADPHASE_BROADPHASE_CALLBACKS_HH 36 #define HPP_FCL_PYTHON_BROADPHASE_BROADPHASE_CALLBACKS_HH 45 #ifdef HPP_FCL_HAS_DOXYGEN_AUTODOC 46 #include "doxygen_autodoc/functions.h" 47 #include "doxygen_autodoc/hpp/fcl/broadphase/broadphase_callbacks.h" 54 bp::wrapper<CollisionCallBackBase> {
57 void init() { this->get_override(
"init")(); }
59 #pragma GCC diagnostic push 60 #pragma GCC diagnostic ignored "-Wconversion" 61 return this->get_override(
"collide")(o1, o2);
62 #pragma GCC diagnostic pop 66 bp::class_<CollisionCallBackBaseWrapper, boost::noncopyable>(
67 "CollisionCallBackBase", bp::no_init)
72 .
def(
"__call__", &Base::operator(),
78 bp::wrapper<DistanceCallBackBase> {
82 void init() { this->get_override(
"init")(); }
84 Eigen::Matrix<double, 1, 1>& dist) {
85 return distance(o1, o2, dist.coeffRef(0, 0));
89 #pragma GCC diagnostic push 90 #pragma GCC diagnostic ignored "-Wconversion" 91 return this->get_override(
"distance")(o1, o2, dist);
92 #pragma GCC diagnostic pop 96 bp::class_<DistanceCallBackBaseWrapper, boost::noncopyable>(
97 "DistanceCallBackBase", bp::no_init)
102 static_cast<bool (Self::*)(
106 .
def(
"__call__", &Base::operator(),
114 #endif // ifndef HPP_FCL_PYTHON_BROADPHASE_BROADPHASE_CALLBACKS_HH virtual void init()
Initialization of the callback before running the collision broadphase manager.
const char * member_func_doc(FuncPtr)
CollisionCallBackBase Base
Base callback class for collision queries. This class can be supersed by child classes to provide des...
void init()
Initialization of the callback before running the collision broadphase manager.
void def(const char *name, Func func)
bool distance(CollisionObject *o1, CollisionObject *o2, Eigen::Matrix< double, 1, 1 > &dist)
DistanceCallBackBaseWrapper Self
HPP_FCL_DLLAPI FCL_REAL distance(const Matrix3f &R0, const Vec3f &T0, const kIOS &b1, const kIOS &b2, Vec3f *P=NULL, Vec3f *Q=NULL)
Approximate distance between two kIOS bounding volumes.
DistanceCallBackBase Base
virtual bool collide(CollisionObject *o1, CollisionObject *o2)=0
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
void init()
Initialization of the callback before running the collision broadphase manager.
bool distance(CollisionObject *o1, CollisionObject *o2, FCL_REAL &dist)
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluat...
the object for collision or distance computation, contains the geometry and the transform information...
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
double distance(const std::vector< Transform3f > &tf, const BVHModel< BV > &m1, const BVHModel< BV > &m2, bool verbose)
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...