Go to the documentation of this file.
5 #ifndef __pinocchio_collision_pool_broadphase_manager_hpp__
6 #define __pinocchio_collision_pool_broadphase_manager_hpp__
17 typename _BroadPhaseManagerDerived,
20 template<
typename,
int>
class JointCollectionTpl>
24 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
54 const size_t pool_size = (
size_t)omp_get_max_threads())
74 index <
m_managers.size(),
"Index greater than the size of the manager vector.");
82 index <
m_managers.size(),
"Index greater than the size of the manager vector.");
104 using Base::getModel;
105 using Base::getModels;
118 for (
size_t i = 0;
i <
size(); ++
i)
127 for (
size_t i = 0;
i <
size(); ++
i)
131 res &= (&manager.getModel() == &getModel(
i));
135 res &= manager.check();
151 for (
size_t i = 0;
i <
size(); ++
i)
165 if (
size() < new_size)
167 typename BroadPhaseManagerVector::iterator
it =
m_managers.begin();
168 std::advance(
it, (
long)(new_size -
size()));
175 #endif // ifndef __pinocchio_collision_pool_broadphase_manager_hpp__
virtual void doResize(const size_t new_size)
 
const GeometryModelVector & getGeometryModels() const
Returns the vector of Geometry Model.
const GeometryData & getGeometryData(const size_t index) const
Returns the geometry_data at given index.
#define PINOCCHIO_CHECK_INPUT_ARGUMENT(...)
Macro to check an assert-like condition and throw a std::invalid_argument exception (with a message) ...
BroadPhaseManagerVector & getBroadPhaseManagers()
Access to the vector of broad phase managers.
BroadPhaseManagerVector m_managers
Broad phase managers associated to the pool.
virtual ~BroadPhaseManagerPoolBase()
 
Base::DataVector DataVector
virtual void update(const GeometryData &geometry_data_to_copy)
Update the geometry datas with the new value.
const BroadPhaseManagerVector & getBroadPhaseManagers() const
Access to the vector of broad phase managers.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _BroadPhaseManagerDerived BroadPhaseManager
BroadPhaseManagerPoolBase(const Model &model, const GeometryModel &geometry_model, const size_t pool_size=(size_t) omp_get_max_threads())
Default constructor from a model and a pool size.
const GeometryModel & getGeometryModel(const size_t index) const
Returns the geometry_model at given index.
BroadPhaseManagerPoolBase(const BroadPhaseManagerPoolBase &other)
Copy constructor from an other BroadPhaseManagerPoolTpl.
std::vector< BroadPhaseManager > BroadPhaseManagerVector
const GeometryDataVector & getGeometryDatas() const
Returns the vector of Geometry Data.
Base::GeometryModel GeometryModel
bool check() const
Check the validity of the current broadphase.
GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl > Base
Base::GeometryData GeometryData
virtual void update(const GeometryData &geometry_data)
Update the geometry datas with the new value.
Base::DataVector DataVector
BroadPhaseManager & getBroadPhaseManager(const size_t index)
Returns the geometry_data at index.
JointCollectionTpl & model
const BroadPhaseManager & getBroadPhaseManager(const size_t index) const
Returns the geometry_data at index.
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:06