Collaborative learning for robots