Theory and practice of field-based motion coordination in multiagent systems