How does nvblox generate ESDF maps?

I have three questions about nvblox point cloud processing:

  1. How does nvblox remove ground point interference when generating the ESDF and occupancy grid maps?
  2. Is the occupancy grid map generated based on the ESDF map?
  3. Is the ESDF map generated by processing a point cloud within the parameters esdf_slice_min_height and esdf_slice_max_height?

Hello @lmljll,

Thanks for your post and please find my responses to your three questions below.

  1. How does nvblox remove ground point interference when generating the ESDF and occupancy grid maps?

    If the ESDF is sliced at a height above the ground plane, ground points (which are at or below ground level) are effectively and naturally excluded from the resulting occupancy grid and ESDF slice.

  2. Is the occupancy grid map generated based on the ESDF map?

    Yes, the conversion logic is implemented in the file esdf_slice_conversions.cu, where the ESDF slice is directly transformed into occupancy grid values.
    The function NvbloxNode::sliceAndPublishEsdf generates a 2D ESDF slice at a specific height. This ESDF slice image is then passed to esdf_slice_converter_.occupancyGridFromSliceImage, which converts the ESDF slice into an occupancy grid.

  3. Is the ESDF map generated by processing a point cloud within the parameters esdf_slice_min_height and esdf_slice_max_height?

    The ESDF map is not generated using the parameters esdf_slice_min_height and esdf_slice_max_height, as the generation and slicing of the ESDF map are fundamentally handled by functions like sliceLayerToDistanceImage and the EsdfSliceConverter class, which rely on a single fixed height value set by the parameter esdf_slice_height.
    A value loaded from YAML configuration files and assigned in initialization code like nvblox_ros/src/lib/mapper_initialization.cpp.
    The slicing is performed at that one specific altitude, while the parameters esdf_slice_min_height and esdf_slice_max_height serve an entirely separate purpose by being used exclusively for visualization of the slice bounds.