# TryGetPose Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.XRSubsystems.XRVps2Subsystem.TryGetPose/ TryGetPose --- ## Declaration public bool TryGetPose(LocationInfo location, out XRVps2Pose poseOut) #### Summary Convert a Unity LocationInfo to a pose in the device's AR tracking space, using the latest VPS2 localization. #### Returns False if VPS2 has not localized yet, in which case poseOut is default. ### Parameters | Name | Type | Summary | | --- | --- | --- | | latitude | double | - | | longitude | double | - | | altitude | double | - | | orientationEdn | Quaternion | - | | poseOut | XRVps2Pose | The AR pose corresponding to the given location. | --- ## Overload public bool TryGetPose(double latitude, double longitude, double altitude, Quaternion orientationEdn, out XRVps2Pose poseOut) #### Summary Convert a position and orientation in the global coordinate system to a pose in the device's AR tracking space, using the latest VPS2 localization. #### Returns False if VPS2 has not localized yet, in which case poseOut is default. ### Parameters | Name | Type | Summary | | --- | --- | --- | | latitude | double | - | | longitude | double | - | | altitude | double | - | | orientationEdn | Quaternion | - | | poseOut | XRVps2Pose | The AR pose corresponding to the given location. | ---