Trajectory tracking and formation control of a platoon of mobile robots