Go to the documentation of this file.
5 #ifndef COAL_SERIALIZATION_HFIELD_H
6 #define COAL_SERIALIZATION_HFIELD_H
14 namespace serialization {
16 template <
class Archive>
18 const unsigned int ) {
20 ar &make_nvp(
"x_id", node.
x_id);
21 ar &make_nvp(
"x_size", node.
x_size);
22 ar &make_nvp(
"y_id", node.
y_id);
23 ar &make_nvp(
"y_size", node.
y_size);
28 template <
class Archive,
typename BV>
30 const unsigned int ) {
32 boost::serialization::base_object<coal::HFNodeBase>(node));
33 ar &make_nvp(
"bv", node.
bv);
37 template <
typename BV>
52 template <
class Archive,
typename BV>
54 const unsigned int ) {
57 boost::serialization::base_object<coal::CollisionGeometry>(hf_model));
60 Accessor &access =
reinterpret_cast<Accessor &
>(hf_model);
62 ar &make_nvp(
"x_dim", access.x_dim);
63 ar &make_nvp(
"y_dim", access.y_dim);
64 ar &make_nvp(
"heights", access.heights);
65 ar &make_nvp(
"min_height", access.min_height);
66 ar &make_nvp(
"max_height", access.max_height);
67 ar &make_nvp(
"x_grid", access.x_grid);
68 ar &make_nvp(
"y_grid", access.y_grid);
70 ar &make_nvp(
"bvs", access.bvs);
71 ar &make_nvp(
"num_bvs", access.num_bvs);
80 #endif // ifndef COAL_SERIALIZATION_HFIELD_H
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
#define COAL_SERIALIZATION_DECLARE_EXPORT(T)
coal::HeightField< BV > Base
size_t first_child
An index for first child node or primitive If the value is positive, it is the index of the first chi...
BVS bvs
Bounding volume hierarchy.
Data structure depicting a height field given by the base grid dimensions and the elevation along the...
CoalScalar x_dim
Dimensions in meters along X and Y directions.
BV bv
bounding volume storing the geometry
MatrixXs heights
Elevation values in meters of the Height Field.
VecXs x_grid
Grids along the X and Y directions. Useful for plotting or other related things.
CoalScalar min_height
Minimal height of the Height Field: all values bellow min_height will be discarded.
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58