38 #ifndef HPP_FCL_BROAD_PHASE_SSAP_H
39 #define HPP_FCL_BROAD_PHASE_SSAP_H
51 using Base::getObjects;
71 void getObjects(std::vector<CollisionObject*>& objs)
const;
107 typename std::vector<CollisionObject*>::const_iterator pos_start,
108 typename std::vector<CollisionObject*>::const_iterator pos_end,
114 typename std::vector<CollisionObject*>::const_iterator pos_start,
115 typename std::vector<CollisionObject*>::const_iterator pos_end,
125 const std::vector<CollisionObject*>& objs_x,
126 const std::vector<CollisionObject*>& objs_y,
127 const std::vector<CollisionObject*>& objs_z,
128 typename std::vector<CollisionObject*>::const_iterator& it_beg,
129 typename std::vector<CollisionObject*>::const_iterator& it_end);
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
Definition: broadphase_collision_manager.h:54
the object for collision or distance computation, contains the geometry and the transform information
Definition: collision_object.h:215
Simple SAP collision manager.
Definition: broadphase_SSaP.h:48
std::vector< CollisionObject * > objs_x
Objects sorted according to lower x value.
Definition: broadphase_SSaP.h:132
void getObjects(std::vector< CollisionObject * > &objs) const
return the objects managed by the manager
void distance(CollisionObject *obj, DistanceCallBackBase *callback) const
perform distance computation between one object and all the objects belonging to the manager
void clear()
clear the manager
void collide(CollisionObject *obj, CollisionCallBackBase *callback) const
perform collision test between one object and all the objects belonging to the manager
bool checkDis(typename std::vector< CollisionObject * >::const_iterator pos_start, typename std::vector< CollisionObject * >::const_iterator pos_end, CollisionObject *obj, DistanceCallBackBase *callback, FCL_REAL &min_dist) const
check distance between one object and a list of objects, return value is whether stop is possible
void distance(BroadPhaseCollisionManager *other_manager, DistanceCallBackBase *callback) const
perform distance test with objects belonging to another manager
void distance(DistanceCallBackBase *callback) const
perform distance test for the objects belonging to the manager (i.e., N^2 self distance)
void registerObject(CollisionObject *obj)
remove one object from the manager
virtual void update()
update the condition of manager
std::vector< CollisionObject * > objs_z
Objects sorted according to lower z value.
Definition: broadphase_SSaP.h:138
void collide(BroadPhaseCollisionManager *other_manager, CollisionCallBackBase *callback) const
perform collision test with objects belonging to another manager
bool setup_
tag about whether the environment is maintained suitably (i.e., the objs_x, objs_y,...
Definition: broadphase_SSaP.h:142
bool collide_(CollisionObject *obj, CollisionCallBackBase *callback) const
bool checkColl(typename std::vector< CollisionObject * >::const_iterator pos_start, typename std::vector< CollisionObject * >::const_iterator pos_end, CollisionObject *obj, CollisionCallBackBase *callback) const
check collision between one object and a list of objects, return value is whether stop is possible
void setup()
initialize the manager, related with the specific type of manager
static int selectOptimalAxis(const std::vector< CollisionObject * > &objs_x, const std::vector< CollisionObject * > &objs_y, const std::vector< CollisionObject * > &objs_z, typename std::vector< CollisionObject * >::const_iterator &it_beg, typename std::vector< CollisionObject * >::const_iterator &it_end)
bool distance_(CollisionObject *obj, DistanceCallBackBase *callback, FCL_REAL &min_dist) const
BroadPhaseCollisionManager Base
Definition: broadphase_SSaP.h:50
std::vector< CollisionObject * > objs_y
Objects sorted according to lower y value.
Definition: broadphase_SSaP.h:135
size_t size() const
the number of objects managed by the manager
bool empty() const
whether the manager is empty
void collide(CollisionCallBackBase *callback) const
perform collision test for the objects belonging to the manager (i.e., N^2 self collision)
void unregisterObject(CollisionObject *obj)
add one object to the manager
#define HPP_FCL_DLLAPI
Definition: config.hh:88
double FCL_REAL
Definition: data_types.h:66
Main namespace.
Definition: broadphase_bruteforce.h:44
Base callback class for collision queries. This class can be supersed by child classes to provide des...
Definition: broadphase_callbacks.h:50
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
Definition: broadphase_callbacks.h:73