38 #ifndef FCL_BROAD_PHASE_DYNAMIC_AABB_TREE_H 39 #define FCL_BROAD_PHASE_DYNAMIC_AABB_TREE_H 41 #include <unordered_map> 44 #include "fcl/math/bv/utility.h" 45 #include "fcl/geometry/shape/box.h" 46 #include "fcl/geometry/shape/utility.h" 47 #include "fcl/broadphase/broadphase_collision_manager.h" 48 #include "fcl/broadphase/detail/hierarchy_tree.h" 59 using DynamicAABBTable = std::unordered_map<CollisionObject<S>*,
DynamicAABBNode*> ;
61 int max_tree_nonbalanced_level;
62 int tree_incremental_balance_pass;
63 int& tree_topdown_balance_threshold;
64 int& tree_topdown_level;
67 bool octree_as_geometry_collide;
68 bool octree_as_geometry_distance;
127 std::unordered_map<CollisionObject<S>*, DynamicAABBNode*> table;
139 #include "fcl/broadphase/broadphase_dynamic_AABB_tree-inl.h" dynamic AABB<S> tree node
Definition: node_base.h:51
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
void unregisterObject(CollisionObject< S > *obj)
remove one object from the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:774
void distance(CollisionObject< S > *obj, void *cdata, DistanceCallBack< S > callback) const
perform distance computation between one object and all the objects belonging to the manager ...
Definition: broadphase_dynamic_AABB_tree-inl.h:897
size_t size() const
the number of objects managed by the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:966
void update()
update the condition of manager
Definition: broadphase_dynamic_AABB_tree-inl.h:808
void collide(CollisionObject< S > *obj, void *cdata, CollisionCallBack< S > callback) const
perform collision test between one object and all the objects belonging to the manager ...
Definition: broadphase_dynamic_AABB_tree-inl.h:872
void clear()
clear the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:856
bool(*)(CollisionObject< S > *o1, CollisionObject< S > *o2, void *cdata) CollisionCallBack
Callback for collision between two objects. Return value is whether can stop now. ...
Definition: broadphase_collision_manager.h:53
bool(*)(CollisionObject< S > *o1, CollisionObject< S > *o2, void *cdata, S &dist) DistanceCallBack
Callback for distance between two objects, Return value is whether can stop now, also return the mini...
Definition: broadphase_collision_manager.h:60
void getObjects(std::vector< CollisionObject< S > * > &objs) const
return the objects managed by the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:864
Class for hierarchy tree structure.
Definition: hierarchy_tree.h:58
void registerObject(CollisionObject< S > *obj)
add one object to the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:766
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:51
bool empty() const
whether the manager is empty
Definition: broadphase_dynamic_AABB_tree-inl.h:959
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
Definition: broadphase_collision_manager.h:66
Definition: broadphase_dynamic_AABB_tree.h:54
void registerObjects(const std::vector< CollisionObject< S > * > &other_objs)
add objects to the manager
Definition: broadphase_dynamic_AABB_tree-inl.h:734
void setup()
initialize the manager, related with the specific type of manager
Definition: broadphase_dynamic_AABB_tree-inl.h:783