Vps2AssetTrackingData
Declaration
data class Vps2AssetTrackingDataSummary
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].
Constructors
constructor(siteId: String, assetId: String, assetToLocalTrackingTransform: Pose, trackingConfidence: Float, timestampMs: Long, geolocation: GeolocationData? = null, areaId: String? = null)
Parameters
| Name | Type | Summary |
|---|---|---|
| siteId | String | - |
| assetId | String | - |
| assetToLocalTrackingTransform | Pose | - |
| trackingConfidence | Float | - |
| timestampMs | Long | - |
| geolocation | GeolocationData? | - |
| areaId | String? | - |
Properties
| Name | Type | Summary |
|---|---|---|
| areaId | String? | Identifier of subarea in the site localized, or null when the asset has no subareas. |
| assetId | String | The identifier of the VPS map asset. |
| assetToLocalTrackingTransform | Pose | Transform from the asset's coordinate space to the device's local AR tracking space (equivalently, the pose of the asset's origin in tracking space), with translation in meters. Both spaces use ARCore's coordinate convention. Matches [com.nianticspatial.nsdk.AnchorUpdate.anchorToLocalTrackingTransform], so it composes with ARCore and renderer matrices directly. |
| geolocation | GeolocationData? | Geolocation of the asset's origin, or null while the asset has no georeference. |
| siteId | String | The identifier of the site the asset belongs to. |
| timestampMs | Long | Timestamp of the camera frame the transform was last updated from, in monotonic milliseconds: the clock of the frames fed to the session, not wall-clock epoch. |
| trackingConfidence | Float | Confidence in the transform, from 0 (none) to 1 (full). |