Cooperation in Swarms of Robots without Communication