Functions
beluga::io Namespace Reference

Functions

template<typename NDTMapRepresentationT >
NDTMapRepresentationT load_from_hdf5 (const std::filesystem::path &path_to_hdf5_file)
 

Function Documentation

◆ load_from_hdf5()

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

Loads a 2D or 3D 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 for the 2D case and resolution**3 cubes for the 3D case).
  • "cells": (NUM_CELLS, 2 / 3) that contains the cell coordinates.
  • "means": (NUM_CELLS, 2 / 3) that contains the 2d mean of the normal distribution of the cell.
  • "covariances": (NUM_CELLS, 2 / 3, 2 / 3) Contains the covariance for each cell.

    Template Parameters
    NDTMapRepresentationA specialized SparseValueGrid (see sensor/data/sparse_value_grid.hpp), where mapped_type == NDTCell2d / NDTCell3d, that will represent the NDT map as a mapping from 2D / 3D cells to NDTCells.

Definition at line 253 of file ndt_sensor_model.hpp.



beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:54