Multiple-Obstacle Avoidance in Role Assignment of Formation Control