Dyamic assignment in distributed motion planning with local coordination