Go to the documentation of this file.
5 #ifndef __pinocchio_serialization_multibody_geometry_hpp__
6 #define __pinocchio_serialization_multibody_geometry_hpp__
8 #include <boost/serialization/vector.hpp>
9 #include <boost/serialization/map.hpp>
10 #include <boost/serialization/shared_ptr.hpp>
12 #ifdef PINOCCHIO_WITH_HPP_FCL
13 #define HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION
14 #include <hpp/fcl/serialization/collision_data.h>
15 #undef HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION
16 #include <hpp/fcl/serialization/geometric_shapes.h>
17 #include <hpp/fcl/serialization/hfield.h>
18 #if HPP_FCL_VERSION_AT_LEAST(3, 0, 0)
19 #include <hpp/fcl/serialization/octree.h>
21 #include <hpp/fcl/serialization/convex.h>
22 #include <hpp/fcl/serialization/BVH_model.h>
23 #endif // PINOCCHIO_WITH_HPP_FCL
34 template<
class Archive>
41 template<
class Archive,
typename Derived>
51 template<
class Archive>
55 ar &
make_nvp(
"base", base_object<pinocchio::GeometryObject::Base>(geometry_object));
65 template<
class Archive>
75 template<
class Archive>
83 base_obj.name, base_obj.parentJoint, base_obj.parentFrame, base_obj.placement,
nullptr);
86 template<
class Archive>
96 template<
class Archive>
104 #ifdef PINOCCHIO_WITH_HPP_FCL
115 #endif // PINOCCHIO_WITH_HPP_FCL
124 #endif // ifndef __pinocchio_serialization_multibody_geometry_hpp__
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ModelItem< GeometryObject > Base
bool overrideMaterial
Decide whether to override the Material.
JointIndex parentJoint
Index of the parent joint.
void serialize(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int version)
Eigen::Vector3d meshScale
Scaling vector applied to the GeometryObject::geometry object.
Eigen::Vector4d meshColor
RGBA color value of the GeometryObject::geometry object.
const nvp< pinocchio::container::aligned_vector< T > > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
void load_construct_data(Archive &ar, pinocchio::GeometryObject *geometry_object_ptr, const unsigned int)
SE3 placement
Position of kinematic element in parent joint frame.
FrameIndex parentFrame
Index of the parent frame.
std::string meshPath
Absolute path to the mesh file (if the geometry pointee is also a Mesh)
std::string meshTexturePath
Absolute path to the mesh texture file.
CollisionGeometryPtr geometry
The FCL CollisionGeometry (might be a Mesh, a Geometry Primitive, etc.)
void save_construct_data(Archive &ar, const pinocchio::GeometryObject *geometry_object_ptr, const unsigned int)
bool disableCollision
If true, no collision or distance check will be done between the Geometry and any other geometry.
std::string name
Name of the kinematic element.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09