Update localization to use the new Pose class.