Vps2AssetTrackingData
Declaration
struct Vps2AssetTrackingDataSummary
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
| Name | Type | Summary |
|---|---|---|
| let areaId | String? | |
| let assetId | String | The identifier of the asset. |
| let assetToTrackingTransform | simd_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 confidence | Float | Confidence in the transform, from 0 (none) to 1 (full). |
| var debugDescription | String | 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 toCustomDebugStringConvertible: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 thePoint type's debugDescription property. |
| let geolocation | GeolocationData? | Geolocation of the asset's origin, or nil while the asset has nogeoreference. |
| let siteId | String | The identifier of the site the asset belongs to. |
| let timestampMs | UInt64 | 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
nilwhen the assethas no subareas.