Skip to main content
←API Reference ←com.nianticspatial.nsdk.vps2

Vps2AssetTrackingData


Declaration​

data class Vps2AssetTrackingData

Summary​

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​

NameTypeSummary
siteIdString
-
assetIdString
-
assetToLocalTrackingTransformPose
-
trackingConfidenceFloat
-
timestampMsLong
-
geolocationGeolocationData?
-
areaIdString?
-

Properties​

NameTypeSummary
areaIdString?
Identifier of subarea in the site localized, or null when the asset has no subareas.
assetIdString
The identifier of the VPS map asset.
assetToLocalTrackingTransformPose
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.
geolocationGeolocationData?
Geolocation of the asset's origin, or null while the asset has no georeference.
siteIdString
The identifier of the site the asset belongs to.
timestampMsLong
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.
trackingConfidenceFloat
Confidence in the transform, from 0 (none) to 1 (full).