struct mola::LidarOdometry::Parameters::AdaptiveDecimation

Overview

Adaptive scan decimation: skips LiDAR scans while the platform moves little, and processes every scan when it moves more. See mola::AdaptiveDecimation for the budgets. Keep max_time_gap well inside the state estimators’ velocity model window. It acts on top of min_time_between_scans, and is ignored with several LiDARs (groups must stay in step). Off by default.

#include <LidarOdometry.h>

struct AdaptiveDecimation: public mola::AdaptiveDecimation::Budgets
{
    // fields

    bool enabled = false;
    uint32_t max_skipped_scans = 3;
    double max_rotation_deg = 8.0;
    double max_distance = 1.5;
    double max_time_gap = 0.45;
    bool require_gyro = true;
    double min_quality_ratio = 0.97;
    double quality_hold_time = 2.0;

    // methods

    void initialize(const Yaml& cfg);
};

Fields

uint32_t max_skipped_scans = 3

Largest number of consecutive skipped scans (3: at most 1 of 4).

double max_rotation_deg = 8.0

[deg] Rotation budget between processed scans.

double max_distance = 1.5

[m] Distance budget between processed scans.

double max_time_gap = 0.45

[s] Time budget between processed scans.

bool require_gyro = true

Process every scan whose sweep the gyroscope did not cover without a gap. Otherwise, the rotation then comes from the estimator twist, which is one processed scan old and misses the start of a fast turn.

double min_quality_ratio = 0.97

Process every scan for quality_hold_time after a registration whose quality was below this ratio of the recent median quality. 0 in either turns the rule off.

double quality_hold_time = 2.0

[s] See min_quality_ratio.