pyrobosim.navigation.occupancy_grid.OccupancyGrid.is_in_bounds

OccupancyGrid.is_in_bounds(pos)

Check if a given (x,y) position is within grid limits

Parameters:

pos ((int, int)) – The position to be validated.

Returns:

True if the given coordinates are within bounds, else False

Return type:

bool