pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl > Class Template Reference
Inheritance diagram for GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >:
Collaboration diagram for GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl >:

Public Types

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

 GeometryPoolTpl (const GeometryPoolTpl &other)
 Copy constructor from an other GeometryPoolTpl.
 
 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.
 
virtual ~GeometryPoolTpl ()
  
 
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.
 
void update (const Data &data)
 Update all the datas with the input data value.
 
virtual void update (const GeometryData &geometry_data_to_copy)
 Update the geometry datas with the new value.
 
- 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.
 
 ModelPoolTpl (const ModelPoolTpl &pool)
 Copy constructor from an other PoolModel.
 
virtual ~ModelPoolTpl ()
  
 
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.
 

Protected Member Functions

virtual void doResize (const size_t new_size)
  
 

Protected Attributes

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
  
 
ModelVector m_models
  
 

Detailed Description

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

Definition at line 14 of file geometry.hpp.

Member Typedef Documentation

◆ Base

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef ModelPoolTpl<_Scalar, _Options, JointCollectionTpl> Base

Definition at line 19 of file geometry.hpp.

◆ Data

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef Base::Data Data

Definition at line 27 of file geometry.hpp.

◆ DataVector

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef Base::DataVector DataVector

Definition at line 29 of file geometry.hpp.

◆ GeometryData

Definition at line 31 of file geometry.hpp.

◆ GeometryDataVector

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef std::vector<GeometryData, Eigen::aligned_allocator<GeometryData> > GeometryDataVector

Definition at line 34 of file geometry.hpp.

◆ GeometryModel

Definition at line 30 of file geometry.hpp.

◆ GeometryModelVector

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef std::vector<GeometryModel, Eigen::aligned_allocator<GeometryModel> > GeometryModelVector

Definition at line 33 of file geometry.hpp.

◆ Model

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef Base::Model Model

Definition at line 26 of file geometry.hpp.

◆ ModelVector

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef Base::ModelVector ModelVector

Definition at line 28 of file geometry.hpp.

◆ Scalar

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
typedef _Scalar Scalar

Definition at line 20 of file geometry.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
anonymous enum

Definition at line 21 of file geometry.hpp.

Constructor & Destructor Documentation

◆ GeometryPoolTpl() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryPoolTpl ( 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 42 of file geometry.hpp.

◆ GeometryPoolTpl() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryPoolTpl ( const GeometryPoolTpl< _Scalar, _Options, JointCollectionTpl > &  other)
inline

Copy constructor from an other GeometryPoolTpl.

Parameters
[in]otherGeometryPoolTpl to copy.

Definition at line 67 of file geometry.hpp.

◆ ~GeometryPoolTpl()

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
virtual ~GeometryPoolTpl ( )
inlinevirtual

 

Destructor

Definition at line 177 of file geometry.hpp.

Member Function Documentation

◆ doResize()

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
virtual void doResize ( const size_t  new_size)
inlineprotectedvirtual

 

Method to implement in the derived classes.

Reimplemented from ModelPoolTpl< _Scalar, _Options, JointCollectionTpl >.

Reimplemented in BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >.

Definition at line 187 of file geometry.hpp.

◆ getGeometryData() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryData & getGeometryData ( const size_t  index)
inline

Returns the geometry_data at given index.

Definition at line 108 of file geometry.hpp.

◆ getGeometryData() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
const GeometryData & getGeometryData ( const size_t  index) const
inline

Returns the geometry_data at given index.

Definition at line 99 of file geometry.hpp.

◆ getGeometryDatas() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryDataVector & getGeometryDatas ( )
inline

Returns the vector of Geometry Data.

Definition at line 123 of file geometry.hpp.

◆ getGeometryDatas() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
const GeometryDataVector & getGeometryDatas ( ) const
inline

Returns the vector of Geometry Data.

Definition at line 117 of file geometry.hpp.

◆ getGeometryModel() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryModel & getGeometryModel ( const size_t  index)
inline

Returns the geometry_model at given index.

Definition at line 90 of file geometry.hpp.

◆ getGeometryModel() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
const GeometryModel & getGeometryModel ( const size_t  index) const
inline

Returns the geometry_model at given index.

Definition at line 81 of file geometry.hpp.

◆ getGeometryModels() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryModelVector & getGeometryModels ( )
inline

Returns the vector of Geometry Model.

Definition at line 135 of file geometry.hpp.

◆ getGeometryModels() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
const GeometryModelVector & getGeometryModels ( ) const
inline

Returns the vector of Geometry Model.

Definition at line 129 of file geometry.hpp.

◆ size()

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
size_t size ( ) const
inline

Returns the size of the pool.

Definition at line 68 of file model.hpp.

◆ sync()

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
void sync ( const GeometryModel geometry_model,
const std::vector< GeomIndex > &  geometry_indexes 
)
inline

Synchronize the internal geometry models with the input geometry for all given geometry indexes by cloning the related geometryObjects.

 

Definition at line 145 of file geometry.hpp.

◆ update() [1/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
void update ( const Data data)
inline

Update all the datas with the input data value.

 

Parameters
[in]datanew value to use and to copy within the vector of data.

Definition at line 62 of file model.hpp.

◆ update() [2/2]

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
virtual void update ( const GeometryData geometry_data_to_copy)
inlinevirtual

Update the geometry datas with the new value.

 

Parameters
[in]geometry_data_to_copynew geometry data value to copy

Reimplemented in BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >, and BroadPhaseManagerPoolBase< _BroadPhaseManagerDerived, _Scalar, _Options, JointCollectionTpl >.

Definition at line 164 of file geometry.hpp.

Member Data Documentation

◆ m_geometry_datas

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryDataVector m_geometry_datas
protected

Vector of Geometry Data associated to the pool.

Definition at line 184 of file geometry.hpp.

◆ m_geometry_models

template<typename _Scalar , int _Options, template< typename, int > class JointCollectionTpl>
GeometryModelVector m_geometry_models
protected

Vector of Geometry Model associated to the pool.

Definition at line 181 of file geometry.hpp.


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