This paper proposes a nonlinear synchronization controller for a swarm of unicycle robots performing a cooperative task, i.e., following a desired trajectory per robot while maintaining a prescribed formation. The effect of communication between robots is analyzed and several network topologies are investigated, e.g., all-to-all, ring type, undirected, among others. The stability analysis of the closed loop system is provided using the Lyapunov method. Experiments with four unicycle robots are presented to validate the control law and communication analysis. Accumulated errors over the experiment time are presented in order to determine which topology is most efficient.