struct mola::LidarOdometry::Parameters::SimpleMapOptions

Overview

#include <LidarOdometry.h>

struct SimpleMapOptions
{
    // fields

    bool generate = false;
    double min_translation_between_keyframes = 1.0;
    double min_rotation_between_keyframes = 30.0;
    bool measure_from_last_kf_only = false;
    std::string save_final_map_to_file;
    bool add_non_keyframes_too = false;
    double save_gnns_max_age = 1.0;
    bool generate_lazy_load_scan_files = false;
    std::string load_existing_simple_map;

    // methods

    void initialize(
        const Yaml& c,
        Parameters& parent
        );
};

Fields

double min_translation_between_keyframes = 1.0

Minimum Euclidean distance (x,y,z) between keyframes inserted into the simplemap [meters].

double min_rotation_between_keyframes = 30.0

Minimum rotation (in 3D space, yaw, pitch,roll, altogether) between keyframes inserted into the map [in degrees].

bool measure_from_last_kf_only = false

If true, distance from the last map update are only considered. Use if mostly mapping without “closed loops”.

If false (default), a KD-tree will be used to check the distance to all past map insert poses.

std::string save_final_map_to_file

If not empty, the final simple map will be dumped to a file at destruction time

bool add_non_keyframes_too = false

If enabled, all frames are stored in the simplemap, but non-keyframes will be without associated observations.

double save_gnns_max_age = 1.0

If !=0, storing the latest GNNS observation together with the Lidar observation in the simplemap CSensoryFrame (SF) (“keyframe”) will be enabled. This parameter sets the maximum age in seconds for a GNNS (GPS) observation to be considered valid to be stored in the SF.

bool generate_lazy_load_scan_files = false

If enabled, a directory will be create alongside the .simplemap and pointclouds will be externally serialized there, for much faster loading and processing of simplemaps.

std::string load_existing_simple_map

If non-empty, the simple map will be loaded from the given *.simplemap file instead of generating it from scratch. This can be used for multi-session SLAM, or for localization-only.