Autonomous learning of collaboration among robots