Function grid_map::checkIfPositionWithinMap

Function Documentation

bool grid_map::checkIfPositionWithinMap(const Position &position, const Length &mapLength, const Position &mapPosition)

Checks if position is within the map boundaries.

Parameters:
  • position[in] the position which is to be checked.

  • mapLength[in] the length of the map.

  • mapPosition[in] the position of the map.

Returns:

true if position is within map, false otherwise.