Sensor-based dynamic assignment in distributed motion planning