Robot learns to track itself and the world through a mirror