18template<Field FldT = Field::TSDF, Colour ColB = Colour::Off, Id IdB = Id::Off>
29 typename FieldType::Config
field;
31 typename IdType::Config
id;
68template<Field FldT, Colour ColB, Id IdB>
75template<Field FldT, Colour ColB, Id IdB>
82template<Field FldT, Colour ColB, Id IdB>
88template<Field FldT, Colour ColB, Id IdB>
91template<Colour ColB, Id IdB>
97template<Colour ColB, Id IdB>
105template<Field FldT, Colour ColB, Id IdB>
108 return data.field.valid();
113template<Field FldT, Colour ColB, Id IdB>
116template<Colour ColB, Id IdB>
119 return data.field.tsdf;
122template<Colour ColB, Id IdB>
125 return data.field.occupancy * data.field.weight;
130template<Field FldT, Colour ColB, Id IdB>
133template<Colour ColB, Id IdB>
139template<Colour ColB, Id IdB>
161#include "impl/data_impl.hpp"
int up_prop_mean(Data< FldT, ColB, IdB > &parent_data, const std::array< Data< FldT, ColB, IdB >, 8 > &child_data)
Up-propagate the mean of the valid child_data into parent_data and return the number of children with...
int up_prop_min(Data< FldT, ColB, IdB > &parent_min_data, const std::array< Data< FldT, ColB, IdB >, 8 > &child_min_data)
Up-propagate the minimum of the valid child_data into parent_data and return the number of children w...
int up_prop_max(Data< FldT, ColB, IdB > &parent_max_data, const std::array< Data< FldT, ColB, IdB >, 8 > &child_max_data)
Up-propagate the maximum of the valid child_data into parent_data and return the number of children w...
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
float field_t
The type of the stored field (e.g. TSDF, ESDF or occupancy)
Definition type_util.hpp:49
Data< Field::Occupancy, Colour::On, Id::Off > OccupancyColData
Definition data.hpp:149
void set_invalid(Data< FldT, ColB, IdB > &data)
Data< Field::Occupancy, Colour::Off, Id::On > OccupancyIdData
Definition data.hpp:150
Data< Field::TSDF, Colour::Off, Id::Off > TSDFData
Definition data.hpp:154
field_t get_field(const Data< FldT, ColB, IdB > &data)
Data< Field::Occupancy, Colour::On, Id::On > OccupancyColIdData
Definition data.hpp:151
Id
Definition setup_util.hpp:20
Data< Field::TSDF, Colour::On, Id::Off > TSDFColData
Definition data.hpp:155
bool is_valid(const Data< FldT, ColB, IdB > &data)
Definition data.hpp:106
Field
Definition setup_util.hpp:18
bool is_inside(const Data< FldT, ColB, IdB > &data)
Colour
Definition setup_util.hpp:19
Data< Field::TSDF, Colour::Off, Id::On > TSDFIdData
Definition data.hpp:156
Data< Field::Occupancy, Colour::Off, Id::Off > OccupancyData
Definition data.hpp:148
Data< Field::TSDF, Colour::On, Id::On > TSDFColIdData
Definition data.hpp:157
void readYaml(const std::string &yaml_file)
Reads the struct members from the "data" node of a YAML file.
Definition data.hpp:36
friend std::ostream & operator<<(std::ostream &os, const Config &c)
Definition data.hpp:45
ColourType::Config colour
Definition data.hpp:30
IdType::Config id
Definition data.hpp:31
FieldType::Config field
Definition data.hpp:29
ColourType colour
Definition data.hpp:25
IdType id
Definition data.hpp:26
FieldType field
Definition data.hpp:24
IdData< IdB > IdType
Definition data.hpp:22
static constexpr bool normals_along_gradient
Definition data.hpp:57
ColourData< ColB > ColourType
Definition data.hpp:21
static constexpr field_t surface_boundary
Definition data.hpp:58
static constexpr Colour col_
Definition data.hpp:55
static constexpr Field fld_
Definition data.hpp:54
static constexpr Id id_
Definition data.hpp:56
FieldData< FldT > FieldType
Definition data.hpp:20