A memory-based robot architecture based on contextual information