Teaching robots to map large environments