Self-reactive planning of multi-robots with dynamic task assignments