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> 11 #ifdef PINOCCHIO_WITH_HPP_FCL 12 #define HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION 13 #include <hpp/fcl/serialization/collision_data.h> 14 #undef HPP_FCL_SKIP_EIGEN_BOOST_SERIALIZATION 15 #endif // PINOCCHIO_WITH_HPP_FCL 17 #include "pinocchio/multibody/geometry.hpp" 18 #include "pinocchio/serialization/aligned-vector.hpp" 19 #include "pinocchio/serialization/spatial.hpp" 25 template<
class Archive>
30 ar &
make_nvp(
"pair",base_object<pinocchio::CollisionPair::Base>(collision_pair));
33 template<
class Archive>
42 #ifdef PINOCCHIO_WITH_HPP_FCL 43 ar &
make_nvp(
"distanceRequests",geom_data.distanceRequests);
44 ar &
make_nvp(
"distanceResults",geom_data.distanceResults);
45 ar &
make_nvp(
"collisionRequests",geom_data.collisionRequests);
46 ar &
make_nvp(
"collisionResults",geom_data.collisionResults);
48 ar &
make_nvp(
"radius",geom_data.radius);
50 ar &
make_nvp(
"collisionPairIndex",geom_data.collisionPairIndex);
51 #endif // PINOCCHIO_WITH_HPP_FCL 60 #endif // ifndef __pinocchio_serialization_multibody_geometry_hpp__
std::map< JointIndex, GeomIndexList > innerObjects
Map over vector GeomModel::geometryObjects, indexed by joints.
std::vector< bool > activeCollisionPairs
Vector of collision pairs.
void serialize(Archive &ar, hpp::fcl::AABB &aabb, const unsigned int)
std::map< JointIndex, GeomIndexList > outerObjects
A list of associated collision GeometryObjects to a given joint Id.
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)