Go to the documentation of this file.
38 #ifndef COAL_BROADPHASE_BROADPHASECOLLISIONMANAGER_H
39 #define COAL_BROADPHASE_BROADPHASECOLLISIONMANAGER_H
43 #include <boost/function.hpp>
60 virtual void registerObjects(
const std::vector<CollisionObject*>& other_objs);
69 virtual void setup() = 0;
72 virtual void update() = 0;
78 virtual void update(
const std::vector<CollisionObject*>& updated_objs);
81 virtual void clear() = 0;
84 virtual void getObjects(std::vector<CollisionObject*>& objs)
const = 0;
87 virtual std::vector<CollisionObject*>
getObjects()
const {
88 std::vector<CollisionObject*>
res(size());
120 virtual bool empty()
const = 0;
123 virtual size_t size()
const = 0;
129 mutable std::set<std::pair<CollisionObject*, CollisionObject*> >
tested_set;
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
virtual std::vector< CollisionObject * > getObjects() const
return the objects managed by the manager
COAL_DLLAPI CoalScalar distance(const Matrix3s &R0, const Vec3s &T0, const kIOS &b1, const kIOS &b2, Vec3s *P=NULL, Vec3s *Q=NULL)
Approximate distance between two kIOS bounding volumes.
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
std::set< std::pair< CollisionObject *, CollisionObject * > > tested_set
tools help to avoid repeating collision or distance callback for the pairs of objects tested before....
COAL_DLLAPI std::size_t collide(const CollisionObject *o1, const CollisionObject *o2, const CollisionRequest &request, CollisionResult &result)
Main collision interface: given two collision objects, and the requirements for contacts,...
Base callback class for collision queries. This class can be supersed by child classes to provide des...
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:57