5 #ifndef __pinocchio_collision_tree_broadphase_manager_hpp__
6 #define __pinocchio_collision_tree_broadphase_manager_hpp__
8 #include "pinocchio/collision/broadphase-manager.hpp"
13 template<
typename _Manager>
16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
18 typedef _Manager Manager;
22 typedef std::vector<hpp::fcl::CollisionObject *> CollisionObjectPointerVector;
23 typedef std::vector<BroadPhaseManager> BroadPhaseManagerVector;
71 void update(
bool compute_local_aabb =
false);
128 void init(
const size_t njoints);
135 #include "pinocchio/collision/tree-broadphase-manager.hxx"
Main pinocchio namespace.
const GeometryModel & getGeometryModel() const
Returns the geometry model associated to the manager.
const Model & getModel() const
Returns the model associated to the manager.
const GeometryModel * geometry_model_ptr
Pointer to the geometry model.
const Model * model_ptr
Pointer to the model.
GeometryData * geometry_data_ptr
Pointer to the geometry data.
const GeometryData & getGeometryData() const
Returns the geometry data associated to the manager.
Interface for Pinocchio collision callback functors.
int njoints
Number of joints.
void update(GeometryData *geom_data_ptr_new)
Update the manager with a new geometry data.
bool collide(CollisionObject &obj, CollisionCallBackBase *callback) const
Performs collision test between one object and all the objects belonging to the manager.
void init(const size_t njoints)
Initialialisation.
TreeBroadPhaseManagerTpl(const TreeBroadPhaseManagerTpl &other)
Copy contructor.
bool check() const
Check whether the base broad phase manager is aligned with the current collision_objects.
bool check(CollisionCallBackBase *callback) const
Check whether the callback is inline with *this.
BroadPhaseManagerVector managers
the vector of collision objects.
const BroadPhaseManagerVector & getBroadPhaseManagers() const
Returns internal broad phase managers.
TreeBroadPhaseManagerTpl(const Model *model_ptr, const GeometryModel *geometry_model_ptr, GeometryData *geometry_data_ptr)
Constructor from a given geometry model and data.
bool collide(TreeBroadPhaseManagerTpl &other_manager, CollisionCallBackBase *callback) const
Performs collision test with objects belonging to another manager.
BroadPhaseManagerVector & getBroadPhaseManagers()
Returns internal broad phase managers.
void update(bool compute_local_aabb=false)
Update the manager from the current geometry positions and update the underlying FCL broad phase mana...
TreeBroadPhaseManagerTpl()
Default constructor.
bool collide(CollisionCallBackBase *callback) const
Performs collision test for the objects belonging to the manager.