Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRVps2Subsystem

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​

NameTypeSummary
latitudedouble
-
longitudedouble
-
altitudedouble
-
orientationEdnQuaternion
-
poseOutXRVps2Pose
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​

NameTypeSummary
latitudedouble
-
longitudedouble
-
altitudedouble
-
orientationEdnQuaternion
-
poseOutXRVps2Pose
The AR pose corresponding to the given location.