Learning and adaptation in physical heterogeneous teams of robots