VpsAnchorUpdate
Contains the latest tracking information for a VPS anchor....
Declaration
struct VpsAnchorUpdateSummary
Contains the latest tracking information for a VPS anchor.
Anchor updates are retrieved via getAnchorUpdate(anchorId:) and provide the
most current information about an anchor's position, orientation, and tracking status. This
is a snapshot of the anchor, and the latest anchor update should be used every frame.
Properties
| Name | Type | Summary |
|---|---|---|
| var anchorId | NsdkVpsAnchorId | The unique identifier of the anchor. |
| var anchorToLocalTransform | simd_float4x4? | The 4x4 transformation matrix from anchor space to local tracking space. This matrix represents the anchor's position and orientation relative to the device's current local coordinate system. Use this for placing AR content relative to the anchor. |
| var description | String | A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the String(describing:)initializer. This initializer works with any type, and uses the custom description property for types that conform toCustomStringConvertible:struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of p to a string in the assignment to s uses thePoint type's description property. |
| var timestampMs | UInt64? | Timestamp when this update was generated (in milliseconds since epoch). |
| var trackingConfidence | Float? | Confidence score for the current tracking estimate. A value between 0.0 and 1.0 indicating the reliability of the pose estimate. Higher values indicate more reliable tracking. |
| var trackingState | AnchorTrackingState | The current tracking state of the anchor. Indicates whether the anchor is being tracked and how reliable the pose data is. See AnchorTrackingState for detailed information about each state. |
| var trackingStateReason | AnchorTrackingStateReason | Additional context about the tracking state. |
Nested Types
Enums
| Name | Type | Summary |
|---|---|---|
| AnchorTrackingState | AnchorTrackingState | Represents the current tracking state of a VPS anchor. The tracking state indicates how well the system is able to track an anchor's position and orientation in the current environment. |
| AnchorTrackingStateReason | AnchorTrackingStateReason | Provides additional context about why an anchor is in either the NotTrackedor Limited tracking states. |
Relationships
conforms to: Swift.CustomStringConvertible