Discrete analysis in obstacle clustering by heterogeneous robots