Mechanisms of motor learning: by humans, for robots