Go to the documentation of this file.
5 #ifndef __pinocchio_python_collision_pool_geometry_hpp__
6 #define __pinocchio_python_collision_pool_geometry_hpp__
8 #include <boost/python/overloads.hpp>
20 #if EIGENPY_VERSION_AT_MOST(2, 8, 1)
30 template<
typename GeometryPool>
32 :
public bp::def_visitor<GeometryPoolPythonVisitor<GeometryPool>>
43 template<
class PyClass>
47 bp::args(
"self",
"model",
"geometry_model",
"size"),
"Default constructor."))
48 .def(bp::init<const GeometryPool &>(bp::args(
"self",
"other"),
"Copy constructor."))
53 bp::args(
"self",
"index"),
"Return a specific geometry model.",
54 bp::return_internal_reference<>())
58 bp::arg(
"self"),
"Returns the geometry model vector.",
59 bp::return_internal_reference<>())
64 bp::args(
"self",
"index"),
"Return a specific geometry data.",
65 bp::return_internal_reference<>())
69 bp::arg(
"self"),
"Returns the geometry data vector.", bp::return_internal_reference<>())
73 "Synchronize the internal geometry models with the input geometry for all given "
78 bp::args(
"self",
"geometry_data"),
79 "Update all the geometry datas with the input geometry data value.");
85 bp::class_<GeometryPool, bp::bases<Base>>(
87 "Pool containing a model + a geometry_model and several datas for parallel computations",
99 #endif // ifnded __pinocchio_python_collision_pool_geometry_hpp__
void init(bool compute_local_aabb=true)
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.
GeometryPool::GeometryModelVector GeometryModelVector
GeometryPool::GeometryDataVector GeometryDataVector
std::vector< GeometryModel, Eigen::aligned_allocator< GeometryModel > > GeometryModelVector
GeometryPool::Model Model
void def(const char *name, Func func)
virtual void update(const GeometryData &geometry_data_to_copy)
Update the geometry datas with the new value.
GeometryPool::GeometryModel GeometryModel
#define EIGENPY_DEFINE_STRUCT_ALLOCATOR_SPECIALIZATION(...)
GeometryPool::GeometryData GeometryData
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ModelPoolTpl< _Scalar, _Options, JointCollectionTpl > Base
Add the Python method copy to allow a copy of this by calling the copy constructor.
const GeometryModel & getGeometryModel(const size_t index) const
Returns the geometry_model at given index.
std::vector< GeometryData, Eigen::aligned_allocator< GeometryData > > GeometryDataVector
const GeometryDataVector & getGeometryDatas() const
Returns the vector of Geometry Data.
void visit(PyClass &cl) const
static void expose(const std::string &class_name, const bp::def_visitor< DerivedVisitor > &visitor)
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 cl...
Main pinocchio namespace.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09