def METHOD_NAME(self, ox, oy):
    grid_index_map = defaultdict(list)
    for i in range(len(ox)):
        grid_index = self.grid_map.calc_grid_index_from_xy_pos(ox[i], oy[i])
        grid_index_map[grid_index].append(i)
    return grid_index_map