Collective Perception in a Robot Swarm