Function grid_map::getIndexFromBufferIndex

Function Documentation

Index grid_map::getIndexFromBufferIndex(const Index &bufferIndex, const Size &bufferSize, const Index &bufferStartIndex)

Retrieve the index as unwrapped index, i.e., as the corresponding index of a grid map with no circular buffer offset.

Parameters:
  • bufferIndex – the index in the circular buffer.

  • bufferSize – the map buffer size.

  • bufferStartIndex – the map buffer start index.

Returns:

the unwrapped index.