Text this: Optimal cooperative control of mobile robots based on Pontryagin's Minimum Principle