Continual Learning for Autonomous Robots: A Prototype-based Approach