# com.nianticspatial.nsdk.vps2 Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.vps2/ vps2 --- ## Classes | Name | Type | Summary | | --- | --- | --- | | Vps2Session | Vps2Session | A session for VPS2 localization. | --- ## Data Classes | Name | Type | Summary | | --- | --- | --- | | Vps2AssetTrackingData | Vps2AssetTrackingData | The pose of a VPS asset's origin in the device's AR tracking space.Content authored in the asset's coordinate space is placed by transforming it with[assetToLocalTrackingTransform]. This relates two origins (the asset's and the AR session's) andis independent of the current camera pose. The asset's coordinate space is the same spacedownloaded mesh chunks are placed in (see [com.nianticspatial.nsdk.MeshDownloaderData.transform]).Only served while the asset is fully tracked -- see [Vps2Session.getAssetTrackingData]. | | Vps2GeolocationData | Vps2GeolocationData | Geolocation data from VPS2 localization with accuracy information. | | Vps2Localization | Vps2Localization | Spatial mapping between the device's AR tracking space and real-worldgeolocation, as determined by VPS2.This relates two origins: the AR tracking space origin (where the AR sessionstarted) and a geographic reference point. It is not relative to the currentcamera pose, and does not change as the device moves; it changes only whenVPS2 refines or replaces its localization. To convert a specific pose orgeolocation, pass it to [Vps2Session.getPose] or [Vps2Session.getGeolocation].All distances are in meters.If [trackingState] is [Vps2TrackingState.UNAVAILABLE], conversions areinvalid and native conversion APIs will throw`NsdkInvalidOperationStatusException`. | | Vps2LocalizationRequestRecord | Vps2LocalizationRequestRecord | Diagnostics record describing a VPS2 localization request.The identifier is a 32-byte ASCII hex string (uppercase) returned by native. | | Vps2LocalizedAsset | Vps2LocalizedAsset | The VPS asset the device is localized to.Identifies the asset behind the most recent successful visual localization. Both IDs name thesite's VPS map asset: [assetId] is never the ID of a mesh, splat, or other non-VPS asset of thesite.Neither ID is human readable. Resolve names through the sites API: `SitesSession.requestSiteInfo`and `SitesSession.requestAssetInfo`. | | Vps2Pose | Vps2Pose | Pose in AR tracking space calculated by VPS2 from a geolocation. This is the pose of thegeolocation that was passed in, not of the device. | --- ## Enums | Name | Type | Summary | | --- | --- | --- | | HeadingMode | HeadingMode | Controls how the heading is computed from the device's orientation.Mirrors `ARDK_HeadingMode`. | | Vps2LocalizationError | Vps2LocalizationError | Error codes from VPS localization operations.Mirrors `ARDK_VPS2_LocalizationError`. | | Vps2LocalizationRequestStatus | Vps2LocalizationRequestStatus | Localization request lifecycle status.Mirrors `ARDK_VPS2_LocalizationRequestStatus`. | | Vps2LocalizationRequestType | Vps2LocalizationRequestType | VPS2 localization request type.Mirrors `ARDK_VPS2_LocalizationRequestType`. | | Vps2TrackingState | Vps2TrackingState | Tracking quality for VPS2 localization.Note: [PRECISE] can persist while a device is disturbed, such as a covered camera or a darkroom, and persists indefinitely while the device stays still. It changes once confidencedrops low enough.Mirrors `ARDK_VPS2_TrackingState`. | ---