How Robots Understand Their Environment