Text this: A distributed control strategy for groups of robots with application in flocking