ActLoc: Learning to Localize on the Move via Active Viewpoint Selection