5 #ifndef COAL_SERIALIZATION_COLLISION_OBJECT_H
6 #define COAL_SERIALIZATION_COLLISION_OBJECT_H
14 namespace serialization {
16 template <
class Archive>
18 const unsigned int ) {
19 ar& make_nvp(
"aabb_center", collision_geometry.
aabb_center);
20 ar& make_nvp(
"aabb_radius", collision_geometry.
aabb_radius);
21 ar& make_nvp(
"aabb_local", collision_geometry.
aabb_local);
22 ar& make_nvp(
"cost_density", collision_geometry.
cost_density);
27 template <
class Archive>
29 const unsigned int ) {
30 ar >> make_nvp(
"aabb_center", collision_geometry.
aabb_center);
31 ar >> make_nvp(
"aabb_radius", collision_geometry.
aabb_radius);
32 ar >> make_nvp(
"aabb_local", collision_geometry.
aabb_local);
33 ar >> make_nvp(
"cost_density", collision_geometry.
cost_density);
35 ar >> make_nvp(
"threshold_free", collision_geometry.
threshold_free);
47 template <
typename BV>
50 template <
typename PolygonT>
68 namespace serialization {
71 template <
class Archive>
72 static void on(Archive& ar) {
The geometry for the object for collision or distance computation.
Definition: collision_object.h:94
#define COAL_SERIALIZATION_SPLIT(Type)
Definition: fwd.h:24
void * user_data
pointer to user defined data specific to this object
Definition: collision_object.h:161
AABB aabb_local
AABB in local coordinate, used for tight AABB when only translation transform.
Definition: collision_object.h:158
Scalar cost_density
collision cost for unit volume
Definition: collision_object.h:164
Scalar threshold_occupied
threshold for occupied ( >= is occupied)
Definition: collision_object.h:167
Scalar threshold_free
threshold for free (<= is free)
Definition: collision_object.h:170
Vec3s aabb_center
AABB center in local coordinate.
Definition: collision_object.h:151
Scalar aabb_radius
AABB radius.
Definition: collision_object.h:154
void load(Archive &ar, coal::BVSplitter< BV > &splitter_, const unsigned int)
Definition: BV_splitter.h:44
void save(Archive &ar, const coal::BVSplitter< BV > &splitter_, const unsigned int)
Definition: BV_splitter.h:30
Main namespace.
Definition: broadphase_bruteforce.h:44
static void on(Archive &ar)
Definition: collision_object.h:72