Template Function beluga::io::load_from_hdf5_2d

Function Documentation

template<typename NDTMapRepresentationT>
NDTMapRepresentationT beluga::io::load_from_hdf5_2d(const std::filesystem::path &path_to_hdf5_file)

Loads a 2D NDT map representation from a hdf5 file, with the following datasets:

  • ”resolution”: () resolution for the discrete grid (cells are resolution x resolution m^2 squares).

  • ”cells”: (NUM_CELLS, 2) that contains the cell coordinates.

  • ”means”: (NUM_CELLS, 2) that contains the 2d mean of the normal distribution of the cell.

  • ”covariances”: (NUM_CELLS, 2, 2) Contains the covariance for each cell.

Template Parameters:

NDTMapRepresentation – A specialized SparseValueGrid (see sensor/data/sparse_value_grid.hpp), where mapped_type == NDTCell2d, that will represent the NDT map as a mapping from 2D cells to NDTCells.