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

XRVps2Localization


Declaration​

public struct XRVps2Localization : ValueType, IEquatable<XRVps2Localization>

Summary​

Spatial mapping between the device’s AR tracking space and real-world geolocation, as determined by VPS2.

Remarks​

This relates two origins: the AR session space origin and a geographic reference point. It is not relative to the current camera pose, and does not change as the device moves; it changes only when VPS2 refines or replaces its localization. To convert a specific pose or geolocation, pass it to GetPose or TryGetGeolocation. All distances are in meters.

Notice

The localization is a point-in-time snapshot. Updates to VPS2’s estimate are not reflected in previously retrieved localization instances.


Fields​

NameTypeSummary
LocalizedAssetNullable<Vps2LocalizedAsset>
The VPS asset the device is localized to, independent of the tracking state.
Null until a visual localization succeeds against a submitted asset. Place the
asset's content with TryGetAssetTrackingData.
TrackingStateVps2TrackingState
The state of VPS2 tracking. The geolocation fields in this struct are only valid if
the tracking state is not Unavailable.

Methods​

NameTypeSummary
Equalsbool
-
GetHashCodeint
-

Relationships​

implements: System.IEquatable