Skip to main content
API Reference NSDK

VpsAnchorUpdate

Contains the latest tracking information for a VPS anchor....

Declaration

struct VpsAnchorUpdate

Summary

Contains the latest tracking information for a VPS anchor. Anchor updates are retrieved via anchorUpdate(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

NameTypeSummary
let anchorIdNSDKVpsAnchorId
The unique identifier of the anchor.
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 trackingDataTrackingData?
Pose, confidence, and timestamp data available when an anchor is in .limited or
.tracked states,
let trackingStateAnchorTrackingState
The current tracking state of the anchor, and associated data.
Anchors in .notTracked and .limited states have an associated
value of type AnchorTrackingState.Reason which explains why the anchor
is in its current state.

Nested Types

Structs

NameTypeSummary
TrackingDataTrackingData
-

Enums

NameTypeSummary
AnchorTrackingStateAnchorTrackingState
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.

Relationships

conforms to: Swift.CustomDebugStringConvertible