Coordinated motion for multi-robot systems under time varying communication topologies