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) and is independent of the current camera pose. The asset's coordinate space is the same space downloaded 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-world geolocation, as determined by VPS2. This relates two origins: the AR tracking space origin (where the AR session started) 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 [Vps2Session.getPose] or [Vps2Session.getGeolocation]. All distances are in meters. If [trackingState] is [Vps2TrackingState.UNAVAILABLE], conversions are invalid 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 the site's VPS map asset: [assetId] is never the ID of a mesh, splat, or other non-VPS asset of the site. Neither ID is human readable. Resolve names through the sites API: SitesSession.requestSiteInfoand SitesSession.requestAssetInfo. |
| Vps2Pose | Vps2Pose | Pose in AR tracking space calculated by VPS2 from a geolocation. This is the pose of the geolocation 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 dark room, and persists indefinitely while the device stays still. It changes once confidence drops low enough. Mirrors ARDK_VPS2_TrackingState. |