Abstract
This paper studies the bipartite consensus problem of a swarm of robots whose dynamics are formulated by Lagrangian equations. Two distributed bipartite consensus control protocols are proposed for a swarm of robots without a leader or with a virtual leader. For the nonleader case, the networked Lagrangian system can reach static bipartite consensus under the control protocol developed, and the final convergent states can be explicitly determined by the specific structure of the Laplacian matrix associated with the cooperative–competitive network topology. For the virtual leader case, all the followers can track the leader's state in a bipartite formation to realize bipartite tracking consensus. Finally, the simulation results are given to verify the theoretical results.