Function grid_map::getPositionShiftFromIndexShift

Function Documentation

bool grid_map::getPositionShiftFromIndexShift(Vector &positionShift, const Index &indexShift, const double &resolution)

Computes the corresponding position shift from a index shift. Use this function if you are moving the grid map and want to ensure that the cells match before and after.

Parameters:
  • positionShift[out] the corresponding shift in position in the grid map frame.

  • indexShift[in] the desired shift of the indeces.

  • resolution[in] the resolution of the map.

Returns:

true if successful.