Vps2Localization
Declaration
data class Vps2LocalizationSummary
Spatial mapping between the device's AR coordinate space and real-world
geolocation, as determined by VPS2.
If [trackingState] is [Vps2TrackingState.UNAVAILABLE], conversions are
invalid and native conversion APIs will throw
ArdkInvalidOperationStatusException.
Properties
| Name | Type | Summary |
|---|---|---|
| isAvailable | Boolean | - |
| localizedAsset | Vps2LocalizedAsset? | The VPS asset the device is localized to, or null before any visual localization has succeeded against a submitted asset. The device is anchored to one asset at a time; this changes when it localizes against a different asset. It is independent of [trackingState], which describes the geolocation estimate: an asset with no georeference still reports here while tracking stays coarse. |
| localizedAssetId | String | The localized VPS map asset; empty until a visual localization succeeds. See [localizedAsset]. |
| localizedSiteId | String | Site of the localized asset; empty until a visual localization succeeds. See [localizedAsset]. |
| referenceAltitudeMetres | Double | Estimated altitude of the camera in metres. |
| referenceLatitudeDegrees | Double | Estimated latitude of the camera in degrees. |
| referenceLongitudeDegrees | Double | Estimated longitude of the camera in degrees. |
| trackingState | Vps2TrackingState | The state of VPS2 tracking. The other fields in this class are only valid if the tracking state is not [Vps2TrackingState.UNAVAILABLE]. |
| trackingStateValue | Int | Raw tracking state value from native ( ARDK_VPS2_TrackingState). |
| trackingToRelativeLonNegAltLat | DoubleArray | Transform from tracking to lat/lon/alt in metres relative to reference point. 4x4 flattened column-major matrix. Length is always 16. |