Skip to main content
←API Reference ←NSDK

Vps2AssetTrackingData


Declaration​

struct Vps2AssetTrackingData

Summary​

Pose of a VPS asset's origin in the device's AR tracking space. Content authored in the asset's coordinate space is placed with assetToTrackingTransform. 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 MeshDownloaderChunk/transform). Only served while the asset is fully tracked; see NSDKVps2Session/assetTrackingData(assetId:).


Properties​

NameTypeSummary
let areaIdString?
Identifier of subarea in the site localized, or nil when the asset
has no subareas.
let assetIdString
The identifier of the asset.
let assetToTrackingTransformsimd_float4x4
Transform from the asset's coordinate space to the device's AR
tracking space (p_tracking = assetToTrackingTransform * p_asset).
Equivalently, the pose of the asset's origin in tracking space.
Translation is in meters; both spaces use ARKit axes (x right, y up,
z backward).
let confidenceFloat
Confidence in the transform, from 0 (none) to 1 (full).
var debugDescriptionString
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the String(reflecting:)
initializer. This initializer works with any type, and uses the custom
debugDescription property for types that conform to
CustomDebugStringConvertible:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of p to a string in the assignment to s uses the
Point type's debugDescription property.
let geolocationGeolocationData?
Geolocation of the asset's origin, or nil while the asset has no
georeference.
let siteIdString
The identifier of the site the asset belongs to.
let timestampMsUInt64
Timestamp of the camera frame the transform was last updated from,
in monotonic milliseconds.

Relationships​

conforms to: Swift.CustomDebugStringConvertible
conforms to: Swift.Sendable
conforms to: Swift.SendableMetatype