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 _Scalar | Scalar |
![]() | |
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 Model &model, const GeometryModel &geometry_model, const int pool_size=omp_get_max_threads()) | |
Default constructor from a model and a pool size. More... | |
GeometryPoolTpl (const GeometryPoolTpl &other) | |
Copy constructor from an other GeometryPoolTpl. More... | |
virtual | ~GeometryPoolTpl () |
More... | |
const GeometryData & | geometry_data (const size_t index) const |
Returns the geometry_data at index. | |
GeometryData & | geometry_data (const size_t index) |
Returns the geometry_data at index. | |
const GeometryDataVector & | geometry_datas () const |
Vector of Geometry Data. | |
GeometryDataVector & | geometry_datas () |
Vector of Geometry Data. | |
const GeometryModel & | geometry_model () const |
Returns the geometry model. | |
GeometryModel & | geometry_model () |
Returns the geometry model. | |
void | update (const GeometryData &geometry_data) |
Update the geometry datas with the new value. More... | |
void | update (const GeometryModel &geometry_model) |
Update the geometry model with the new input value. In this case, all the geometry_datas will be replaced. More... | |
void | update (const GeometryModel &geometry_model, const GeometryData &geometry_data) |
Update the geometry model and data with the new input values. In this case, all the geometry_datas will be replaced. More... | |
![]() | |
ModelPoolTpl (const Model &model, const int pool_size=omp_get_max_threads()) | |
Default constructor from a model and a pool size. More... | |
ModelPoolTpl (const ModelPoolTpl &pool_model) | |
Copy constructor from an other PoolModel. More... | |
virtual | ~ModelPoolTpl () |
More... | |
const Data & | data (const size_t index) const |
Return a specific data. | |
Data & | data (const size_t index) |
Returns a specific data. | |
const DataVector & | datas () const |
Returns the data vectors. | |
DataVector & | datas () |
Returns the data vectors. | |
const Model & | model () const |
Returns the model stored within the pool. | |
Model & | model () |
Returns the model stored within the pool. | |
void | resize (const int new_size) |
Set the size of the pool and perform the appropriate resize. | |
int | size () const |
Returns the size of the pool. | |
void | update (const Model &model) |
Update the model, meaning that all the datas will be refreshed accordingly. More... | |
void | update (const Data &data) |
Update all the datas with the input data value. More... | |
void | update (const Model &model, const Data &data) |
Update the model and data with the new input values. In this case, all the geometry_datas will be replaced. More... | |
Protected Member Functions | |
virtual void | do_resize (const int new_size) |
More... | |
Protected Attributes | |
GeometryDataVector | m_geometry_datas |
Vector of Geometry Data associated to the pool. | |
GeometryModel | m_geometry_model |
Geometry Model associated to the pool. | |
![]() | |
DataVector | m_datas |
More... | |
Model | m_model |
Model stored within the pool. | |
int | m_size |
Number of threads used for parallel computations. | |
Definition at line 16 of file geometry.hpp.
|
inline |
Default constructor from a model and a pool size.
[in] | model | input model used for parallel computations. |
[in] | geometry_model | input geometry model used for parallel computations. |
[in] | pool_size | total size of the pool. |
Definition at line 42 of file geometry.hpp.
|
inline |
Copy constructor from an other GeometryPoolTpl.
[in] | other | GeometryPoolTpl to copy. |
Definition at line 53 of file geometry.hpp.
|
inlinevirtual |
|
inlineprotectedvirtual |
Method to implement in the derived classes.
Reimplemented from ModelPoolTpl< _Scalar, _Options, JointCollectionTpl >.
Definition at line 141 of file geometry.hpp.
|
inline |
Update the geometry datas with the new value.
[in] | geometry_data | new geometry data value |
Definition at line 97 of file geometry.hpp.
|
inline |
Update the geometry model with the new input value. In this case, all the geometry_datas will be replaced.
[in] | geometry_model | new geometry model value. |
Definition at line 108 of file geometry.hpp.
|
inline |
Update the geometry model and data with the new input values. In this case, all the geometry_datas will be replaced.
[in] | geometry_model | new geometry model value. |
[in] | geometry_data | new geometry data value |
Definition at line 122 of file geometry.hpp.