Go to the documentation of this file.
18 , bp::wrapper<CollisionCallBackBase>
24 return this->get_override(
"stop")();
28 if (bp::override
done = this->get_override(
"done"))
42 boost::noncopyable>(
"CollisionCallBackBase", bp::no_init)
45 bp::return_value_policy<bp::copy_const_reference>())
50 bp::arg(
"self"), bp::return_internal_reference<>())
54 "Whether there is a collision or not.")
57 "Whether the callback is used in an accumulate mode where several collide "
58 "methods are called successively.")
61 "stop", bp::pure_virtual(&
Base::stop), bp::arg(
"self"),
62 "If true, the stopping criteria related to the collision callback has been met and "
66 "Callback method called after the termination of a collisition detection algorithm.");
74 bp::class_<CollisionCallBackDefault, bp::bases<CollisionCallBackBase>>(
75 "CollisionCallBackDefault", bp::no_init)
77 bp::args(
"self",
"geometry_model",
"geometry_data",
"stopAtFirstCollision"),
78 "Default constructor from a given GeometryModel and a GeometryData")
79 [bp::with_custodian_and_ward<1, 2>(), bp::with_custodian_and_ward<1, 3>()])
83 "Whether to stop or not when localizing a first collision")
86 "The collision index of the first pair in collision")
void init(bool compute_local_aabb=true)
bool stopAtFirstCollision
Whether to stop or not when localizing a first collision.
bool accumulate
Whether the callback is used in an accumulate mode where several collide methods are called successiv...
CollisionCallBackBase Base
void exposeBroadphaseCallbacks()
const GeometryModel & getGeometryModel() const
void done()
Callback method called after the termination of a collisition detection algorithm....
void def(const char *name, Func func)
Interface for Pinocchio collision callback functors.
virtual bool stop() const =0
If true, the stopping criteria related to the collision callback has been met and one can stop.
size_t count
Number of visits of the collide method.
PairIndex collisionPairIndex
The collision index of the first pair in collision.
bool collision
Whether there is a collision or not.
const GeometryData & getGeometryData() const
virtual void done()
Callback method called after the termination of a collisition detection algorithm....
bool stop() const
If true, the stopping criteria related to the collision callback has been met and one can stop.
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:29