pinocchio  3.3.1
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl > Class Template Reference
Inheritance diagram for BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >:
Collaboration diagram for BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >:

Public Types

enum  { Options = _Options }
 
typedef GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl > Base
 
typedef _BroadPhaseManagerDerived BroadPhaseManager
 
typedef std::vector< BroadPhaseManager > BroadPhaseManagerVector
 
typedef Base::Data Data
 
typedef Base::DataVector DataVector
 
typedef Base::GeometryData GeometryData
 
typedef Base::GeometryModel GeometryModel
 
typedef Base::Model Model
 
typedef _Scalar Scalar
 
- Public Types inherited from GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >
enum  { Options = _Options }
 
typedef ModelPoolTpl< _Scalar, _Options, JointCollectionTpl > Base
 
typedef Base::Data Data
 
typedef Base::DataVector DataVector
 
typedef ::pinocchio::GeometryData GeometryData
 
typedef std::vector< GeometryData, Eigen::aligned_allocator< GeometryData > > GeometryDataVector
 
typedef ::pinocchio::GeometryModel GeometryModel
 
typedef std::vector< GeometryModel, Eigen::aligned_allocator< GeometryModel > > GeometryModelVector
 
typedef Base::Model Model
 
typedef Base::ModelVector ModelVector
 
typedef _Scalar Scalar
 
- Public Types inherited from ModelPoolTpl< _Scalar, _Options, JointCollectionTpl >
enum  { Options = _Options }
 
typedef DataTpl< Scalar, Options, JointCollectionTpl > Data
 
typedef std::vector< Data, Eigen::aligned_allocator< Data > > DataVector
 
typedef ModelTpl< Scalar, Options, JointCollectionTpl > Model
 
typedef std::vector< Model, Eigen::aligned_allocator< Model > > ModelVector
 
typedef _Scalar Scalar
 

Public Member Functions

 BroadPhaseManagerPoolBase (const BroadPhaseManagerPoolBase &other)
 Copy constructor from an other BroadPhaseManagerPoolTpl. More...
 
 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. More...
 
virtual ~BroadPhaseManagerPoolBase ()
   More...
 
bool check () const
 Check the validity of the current broadphase.
 
BroadPhaseManager & getBroadPhaseManager (const size_t index)
 Returns the geometry_data at index.
 
const BroadPhaseManager & getBroadPhaseManager (const size_t index) const
 Returns the geometry_data at index.
 
BroadPhaseManagerVector & getBroadPhaseManagers ()
 Access to the vector of broad phase managers.
 
const BroadPhaseManagerVector & getBroadPhaseManagers () const
 Access to the vector of broad phase managers.
 
GeometryDatagetGeometryData (const size_t index)
 Returns the geometry_data at given index.
 
const GeometryDatagetGeometryData (const size_t index) const
 Returns the geometry_data at given index.
 
GeometryDataVector & getGeometryDatas ()
 Returns the vector of Geometry Data.
 
const GeometryDataVector & getGeometryDatas () const
 Returns the vector of Geometry Data.
 
GeometryModelgetGeometryModel (const size_t index)
 Returns the geometry_model at given index.
 
const GeometryModelgetGeometryModel (const size_t index) const
 Returns the geometry_model at given index.
 
GeometryModelVector & getGeometryModels ()
 Returns the vector of Geometry Model.
 
const GeometryModelVector & getGeometryModels () const
 Returns the vector of Geometry Model.
 
virtual void update (const GeometryData &geometry_data)
 Update the geometry datas with the new value. More...
 
virtual void update (const GeometryData &geometry_data_to_copy)
 Update the geometry datas with the new value. More...
 
- Public Member Functions inherited from GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >
 GeometryPoolTpl (const GeometryPoolTpl &other)
 Copy constructor from an other GeometryPoolTpl. More...
 
 GeometryPoolTpl (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. More...
 
virtual ~GeometryPoolTpl ()
   More...
 
GeometryDatagetGeometryData (const size_t index)
 Returns the geometry_data at given index.
 
const GeometryDatagetGeometryData (const size_t index) const
 Returns the geometry_data at given index.
 
GeometryDataVector & getGeometryDatas ()
 Returns the vector of Geometry Data.
 
const GeometryDataVector & getGeometryDatas () const
 Returns the vector of Geometry Data.
 
GeometryModelgetGeometryModel (const size_t index)
 Returns the geometry_model at given index.
 
const GeometryModelgetGeometryModel (const size_t index) const
 Returns the geometry_model at given index.
 
GeometryModelVector & getGeometryModels ()
 Returns the vector of Geometry Model.
 
const GeometryModelVector & getGeometryModels () const
 Returns the vector of Geometry Model.
 
size_t size () const
 Returns the size of the pool.
 
void sync (const GeometryModel &geometry_model, const std::vector< GeomIndex > &geometry_indexes)
 Synchronize the internal geometry models with the input geometry for all given geometry indexes by cloning the related geometryObjects. More...
 
void update (const Data &data)
 Update all the datas with the input data value. More...
 
- Public Member Functions inherited from ModelPoolTpl< _Scalar, _Options, JointCollectionTpl >
 ModelPoolTpl (const Model &model, const size_t pool_size=(size_t) omp_get_max_threads())
 Default constructor from a model and a pool size. More...
 
 ModelPoolTpl (const ModelPoolTpl &pool)
 Copy constructor from an other PoolModel. More...
 
virtual ~ModelPoolTpl ()
   More...
 
DatagetData (const size_t index)
 Returns a specific data.
 
const DatagetData (const size_t index) const
 Return a specific data.
 
DataVector & getDatas ()
 Returns the data vector.
 
const DataVector & getDatas () const
 Returns the data vector.
 
ModelgetModel (const size_t index)
 Returns a specific model.
 
const ModelgetModel (const size_t index) const
 Return a specific model.
 
ModelVector & getModels ()
 Returns the vector of models.
 
const ModelVector & getModels () const
 Returns the vector of models.
 
void resize (const size_t new_size)
 Set the size of the pool and perform the appropriate resize.
 
size_t size () const
 Returns the size of the pool.
 
void update (const Data &data)
 Update all the datas with the input data value. More...
 

Protected Member Functions

virtual void doResize (const size_t new_size)
   More...
 
void init ()
 

Protected Attributes

BroadPhaseManagerVector m_managers
 Broad phase managers associated to the pool.
 
- Protected Attributes inherited from GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >
GeometryDataVector m_geometry_datas
 Vector of Geometry Data associated to the pool.
 
GeometryModelVector m_geometry_models
 Vector of Geometry Model associated to the pool.
 
- Protected Attributes inherited from ModelPoolTpl< _Scalar, _Options, JointCollectionTpl >
DataVector m_datas
   More...
 
ModelVector m_models
   More...
 

Detailed Description

template<typename _BroadPhaseManagerDerived, typename _Scalar, int _Options, template< typename, int > class JointCollectionTpl>
class pinocchio::BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >

Definition at line 21 of file broadphase-manager.hpp.

Constructor & Destructor Documentation

◆ BroadPhaseManagerPoolBase() [1/2]

BroadPhaseManagerPoolBase ( const Model model,
const GeometryModel geometry_model,
const size_t  pool_size = (size_t)omp_get_max_threads() 
)
inline

Default constructor from a model and a pool size.

Parameters
[in]modelinput model used for parallel computations.
[in]geometry_modelinput geometry model used for parallel computations.
[in]pool_sizetotal size of the pool.

Definition at line 51 of file broadphase-manager.hpp.

◆ BroadPhaseManagerPoolBase() [2/2]

BroadPhaseManagerPoolBase ( const BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl > &  other)
inline

Copy constructor from an other BroadPhaseManagerPoolTpl.

Parameters
[in]otherBroadPhaseManagerPoolTpl to copy.

Definition at line 64 of file broadphase-manager.hpp.

◆ ~BroadPhaseManagerPoolBase()

virtual ~BroadPhaseManagerPoolBase ( )
inlinevirtual

 

Destructor

Definition at line 145 of file broadphase-manager.hpp.

Member Function Documentation

◆ doResize()

virtual void doResize ( const size_t  new_size)
inlineprotectedvirtual

 

Method to implement in the derived classes.

Reimplemented from GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >.

Definition at line 162 of file broadphase-manager.hpp.

◆ update() [1/2]

virtual void update ( const GeometryData geometry_data)
inlinevirtual

Update the geometry datas with the new value.

 

Parameters
[in]geometry_datanew geometry data value

Reimplemented from GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >.

Definition at line 114 of file broadphase-manager.hpp.

◆ update() [2/2]

virtual void update
inline

Update the geometry datas with the new value.

 

Parameters
[in]geometry_data_to_copynew geometry data value to copy

Definition at line 164 of file geometry.hpp.


The documentation for this class was generated from the following file: