Michael Doronin did a project on Sofware modelling of robotic swarms using the robot simulation software Gazebo and the physics engine ODE. Here are some videos generated