This paper designs different laws for formation control and obstacle avoidance for a group of robots with holonomic dynamics and presents a set of simulations that validate and compare them. The Bond Graph methodology, used to design the control laws, together with the physical interpretation of both the obstacles and the interaction between the robots, allows addressing the problem with an energy-based approach. A multi agent scheme is proposed where a leader drives a formation of agents through a desired path. The formation is organized in different hierarchy levels and the control laws for the robots arise from considering the interaction among them through virtual dampers and springs. Two different techniques are addressed for collision avoidance and three scenarios are presented to test the different techniques for coordinated tracking and obstacle collision avoidance. Simulation results are presented to show the good performance of the control system.