require max distance parameter when constructing occupancy grid