How a cooperative behaviour can emerge from a robot team