38 #ifndef FCL_BROAD_PHASE_DYNAMIC_AABB_TREE_ARRAY_H 39 #define FCL_BROAD_PHASE_DYNAMIC_AABB_TREE_ARRAY_H 41 #include <unordered_map> 45 #include "fcl/math/bv/utility.h" 46 #include "fcl/geometry/shape/box.h" 47 #include "fcl/geometry/shape/utility.h" 48 #include "fcl/broadphase/broadphase_collision_manager.h" 49 #include "fcl/broadphase/detail/hierarchy_tree_array.h" 60 using DynamicAABBTable = std::unordered_map<CollisionObject<S>*,
size_t>;
62 int max_tree_nonbalanced_level;
63 int tree_incremental_balance_pass;
64 int& tree_topdown_balance_threshold;
65 int& tree_topdown_level;
68 bool octree_as_geometry_collide;
69 bool octree_as_geometry_distance;
128 std::unordered_map<CollisionObject<S>*,
size_t> table;
140 #include "fcl/broadphase/broadphase_dynamic_AABB_tree_array-inl.h" Class for hierarchy tree structure.
Definition: hierarchy_tree_array.h:61
void getObjects(std::vector< CollisionObject< S > * > &objs) const
return the objects managed by the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:868
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
void registerObject(CollisionObject< S > *obj)
add one object to the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:770
void clear()
clear the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:860
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 unregisterObject(CollisionObject< S > *obj)
remove one object from the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:778
Definition: broadphase_dynamic_AABB_tree_array.h:55
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_array-inl.h:901
size_t size() const
the number of objects managed by the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:970
Definition: node_base_array.h:53
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:51
Base class for broad phase collision. It helps to accelerate the collision/distance between N objects...
Definition: broadphase_collision_manager.h:66
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_array-inl.h:876
void registerObjects(const std::vector< CollisionObject< S > * > &other_objs)
add objects to the manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:738
bool empty() const
whether the manager is empty
Definition: broadphase_dynamic_AABB_tree_array-inl.h:963
void update()
update the condition of manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:812
void setup()
initialize the manager, related with the specific type of manager
Definition: broadphase_dynamic_AABB_tree_array-inl.h:787