A System Architecture For Learning Robots