# TryGetPose Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.VPS2.ARVps2Manager.TryGetPose/ TryGetPose --- ## Declaration public bool TryGetPose(LocationInfo location, out XRVps2Pose poseOut) #### Summary Attempts to convert a Unity LocationInfo to a pose in AR session space, using the latest VPS2 localization. #### Returns false if the subsystem is unavailable or VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | XRVps2Localization | - | | latitude | double | - | | longitude | double | - | | altitude | double | - | | orientationEdn | Quaternion | - | | poseOut | XRVps2Pose | - | --- ## Overload 1 public bool TryGetPose(double latitude, double longitude, double altitude, Quaternion orientationEdn, out XRVps2Pose poseOut) #### Summary Attempts to convert a position and orientation in the global coordinate system to a pose in AR session space, using the latest VPS2 localization. #### Returns false if the subsystem is unavailable or VPS2 has not localized yet. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | XRVps2Localization | - | | latitude | double | - | | longitude | double | - | | altitude | double | - | | orientationEdn | Quaternion | - | | poseOut | XRVps2Pose | - | --- ## Overload 2 public bool TryGetPose(XRVps2Localization localization, double latitude, double longitude, double altitude, Quaternion orientationEdn, out XRVps2Pose poseOut) #### Summary Attempts to convert a position and orientation in the global coordinate system to a pose in AR session space, using the supplied localization snapshot. #### Remarks The pose is in AR session space, not Unity world space. To place a world-space transform at it, compose it with the XR origin first via origin.TrackablesParent.TransformPose. In most cases you want the overload that uses the latest localization automatically; use this one only when a batch of geolocations must share a single snapshot. Throws if localization is unavailable. ### Parameters | Name | Type | Summary | | --- | --- | --- | | localization | XRVps2Localization | - | | latitude | double | - | | longitude | double | - | | altitude | double | - | | orientationEdn | Quaternion | - | | poseOut | XRVps2Pose | - | ---