Robots, Cockroaches, and Collective Behavior