Go to the documentation of this file.
5 #ifndef __pinocchio_collision_broadphase_manager_hpp__
6 #define __pinocchio_collision_broadphase_manager_hpp__
16 template<
typename _Manager>
19 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
63 for (
size_t k = 0; k <
geom_model.collisionPairs.size(); ++k)
97 using Base::getGeometryData;
98 using Base::getGeometryModel;
108 void update(
bool compute_local_aabb =
false);
211 #include "pinocchio/collision/broadphase-manager.hxx"
213 #endif // ifndef __pinocchio_collision_broadphase_manager_hpp__
BroadPhaseManagerTpl(const BroadPhaseManagerTpl &other)
Copy contructor.
bool collide(CollisionObject &obj, CollisionCallBackBase *callback) const
Performs collision test between one object and all the objects belonging to the manager.
CollisionObject(const shared_ptr< CollisionGeometry > &cgeom_, bool compute_local_aabb=true)
std::vector< size_t > selected_geometry_objects
Selected geometry objects in the original geometry_model.
::pinocchio::GeometryData GeometryData
CollisionObjectVector & getCollisionObjects()
Returns the vector of collision objects associated to the manager.
const GeometryModel * geometry_model_ptr
Pointer to the geometry model.
ModelTpl< Scalar, Options > Model
Interface for Pinocchio collision callback functors.
GeometryObjectVector geometryObjects
Vector of GeometryObjects used for collision computations.
const std::vector< bool > & getCollisionObjectStatus() const
Returns the status of the collision object.
bool check() const
Check whether the base broad phase manager is aligned with the current collision_objects.
void init()
Initialialisation of BroadPhaseManagerTpl.
std::vector< size_t > selected_collision_pairs
Selected collision pairs in the original geometry_model.
GeometryData * geometry_data_ptr
Pointer to the geometry data.
BroadPhaseManagerTpl(const Model *model_ptr, const GeometryModel *geometry_model_ptr, GeometryData *geometry_data_ptr, const GeometryObjectFilterBase &filter=GeometryObjectFilterNothing())
Constructor from a given geometry model and data.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef BroadPhaseManagerBase< BroadPhaseManagerTpl< _Manager > > Base
BroadPhaseManagerTpl()
Default constructor.
Manager & getManager()
Returns internal manager.
::pinocchio::GeometryModel GeometryModel
VectorXs collision_object_inflation
the inflation value related to each collision object.
CollisionObjectVector collision_objects
the vector of collision objects.
Manager manager
internal manager
void update(bool compute_local_aabb=false)
Update the manager from the current geometry positions and update the underlying FCL broad phase mana...
const VectorXs & getCollisionObjectInflation()
Returns the inflation value related to each collision object.
std::vector< bool > collision_object_is_active
Disable status related to each collision objects.
const CollisionObjectVector & getCollisionObjects() const
Returns the vector of collision objects associated to the manager.
const Manager & getManager() const
Returns internal manager.
const Model * model_ptr
Pointer to the model.
std::vector< CollisionObject > CollisionObjectVector
AD< Scalar > max(const AD< Scalar > &x, const AD< Scalar > &y)
Main pinocchio namespace.
std::vector< size_t > geometry_to_collision_index
Mapping between a given geometry index and a collision index.
pinocchio
Author(s):
autogenerated on Sun Nov 10 2024 03:42:53