Function grid_map::getIndicesForRegions

Function Documentation

void grid_map::getIndicesForRegions(const std::vector<Index> &regionIndeces, const Size &regionSizes, std::vector<Index> indices)

Generates a list of indices for multiple regions in the map. This method makes sure every index is only once contained in the list.

Parameters:
  • regionIndeces – the regions’ top-left index.

  • regionSizes – the regions’ sizes.

  • indices – the list of indices of the regions.