hpp-fcl
2.4.1
HPP fork of FCL -- The Flexible Collision Library
|
Go to the documentation of this file.
38 #ifndef HPP_FCL_BROAD_PHASE_SAP_H
39 #define HPP_FCL_BROAD_PHASE_SAP_H
53 using Base::getObjects;
60 void registerObjects(
const std::vector<CollisionObject*>& other_objs);
72 virtual void update();
78 void update(
const std::vector<CollisionObject*>& updated_objs);
84 void getObjects(std::vector<CollisionObject*>& objs)
const;
150 const Vec3f& getVal()
const;
168 bool operator==(
const SaPPair& other)
const;
178 bool operator()(
const SaPPair& pair)
const;
190 bool operator()(
const SaPPair& pair);
193 void update_(
SaPAABB* updated_aabb);
201 std::vector<EndPoint*> velist[3];
218 void addToOverlapPairs(
const SaPPair& p);
220 void removeFromOverlapPairs(
const SaPPair& p);
#define HPP_FCL_DLLAPI
Definition: config.hh:88
SAP interval for one object.
Definition: broadphase_SaP.h:120
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:66
EndPoint * hi
higher bound end point of the interval
Definition: broadphase_SaP.h:128
AABB cached
cached AABB value
Definition: broadphase_SaP.h:131
int optimal_axis
Definition: broadphase_SaP.h:209
CollisionObject * obj1
Definition: broadphase_SaP.h:165
CollisionObject * obj
object
Definition: broadphase_SaP.h:122
std::list< SaPPair > overlap_pairs
The pair of objects that should further check for collision.
Definition: broadphase_SaP.h:207
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.
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
Definition: broadphase_collision_manager.h:54
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,...
double FCL_REAL
Definition: data_types.h:65
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
Definition: broadphase_callbacks.h:73
EndPoint * lo
lower bound end point of the interval
Definition: broadphase_SaP.h:125
Main namespace.
Definition: broadphase_bruteforce.h:44
the object for collision or distance computation, contains the geometry and the transform information
Definition: collision_object.h:215
BroadPhaseCollisionManager Base
Definition: broadphase_SaP.h:52
std::list< SaPAABB * > AABB_arr
SAP interval list.
Definition: broadphase_SaP.h:204
A class describing the AABB collision structure, which is a box in 3D space determined by two diagona...
Definition: AABB.h:54
Rigorous SAP collision manager.
Definition: broadphase_SaP.h:50
char minmax
tag for whether it is a lower bound or higher bound of an interval, 0 for lo, and 1 for hi
Definition: broadphase_SaP.h:138
std::map< CollisionObject *, SaPAABB * > obj_aabb_map
Definition: broadphase_SaP.h:211
Functor to help unregister one object.
Definition: broadphase_SaP.h:172
Functor to help remove collision pairs no longer valid (i.e., should be culled away)
Definition: broadphase_SaP.h:183
End point for an interval.
Definition: broadphase_SaP.h:135
A pair of objects that are not culling away and should further check collision.
Definition: broadphase_SaP.h:162
Base callback class for collision queries. This class can be supersed by child classes to provide des...
Definition: broadphase_callbacks.h:50
CollisionObject * obj2
Definition: broadphase_SaP.h:166
SaPAABB * aabb
back pointer to SAP interval
Definition: broadphase_SaP.h:141