struct mola::VoxelStatsMap::TInsertionOptions¶
Overview¶
Options for insertion and for the cell models.
#include <VoxelStatsMap.h> struct TInsertionOptions: public mrpt::config::CLoadableOptions { // fields bool equal_weight_per_scan = true; uint32_t min_scans_active = 5; uint32_t min_points_active = 5; double plane_max_thickness = 0.03; double plane_min_ratio = 20.0; double max_scans_per_cell = 0; double remove_cells_farther_than = 0; uint64_t max_cells = 0; // methods void loadFromConfigFile( const mrpt::config::CConfigFileBase& source, const std::string& section ); void dumpToTextStream(std::ostream& out) const; void writeToStream(mrpt::serialization::CArchive& out) const; void readFromStream(mrpt::serialization::CArchive& in); };
Fields¶
bool equal_weight_per_scan = true
If true, the n points a scan puts in a cell weigh 1/n each; if false, every point weighs 1.
uint32_t min_scans_active = 5
Scans a cell must have seen to be offered to matchers.
uint32_t min_points_active = 5
Points a cell must hold to have a model.
double plane_max_thickness = 0.03
Largest plane thickness (sqrt of the smallest eigenvalue) [m].
double plane_min_ratio = 20.0
A plane also needs its second eigenvalue to exceed this times the first, so its normal is well defined. 0 disables the test.
double max_scans_per_cell = 0
If >0, the weight of a cell’s past is capped at this many scans, so older scans fade. 0: no cap. Requires equal_weight_per_scan (a scan’s weight is then one), checked at insertion.
double remove_cells_farther_than = 0
If >0, cells farther than this (Chebyshev distance) [m] from the robot are removed. Both limits are applied at the start of each insertion, so the cells the latest scan added stay until the next.
uint64_t max_cells = 0
If >0, a soft limit on the number of cells: the farthest go first, and cells tied at the cutoff distance are all kept, so a few more than max_cells may remain.