Robots that learn autonomously