Go to the documentation of this file.
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
CollisionCallBackBase Base
bool distance(CollisionObject *o1, CollisionObject *o2, Eigen::Matrix< double, 1, 1 > &dist)
void init()
Initialization of the callback before running the collision broadphase manager.
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
virtual void init()
Initialization of the callback before running the collision broadphase manager.
DistanceCallBackBaseWrapper Self
void init()
Initialization of the callback before running the collision broadphase manager.
virtual bool collide(CollisionObject *o1, CollisionObject *o2)=0
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
virtual void init()
Initialization of the callback before running the collision broadphase manager.
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
the object for collision or distance computation, contains the geometry and the transform information
bool distance(CollisionObject *o1, CollisionObject *o2, FCL_REAL &dist)
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluat...
virtual bool distance(CollisionObject *o1, CollisionObject *o2, FCL_REAL &dist)=0
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluat...
Base callback class for collision queries. This class can be supersed by child classes to provide des...
DistanceCallBackBase Base
const char * member_func_doc(FuncPtr)
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:12