AnchorTrackingState
Declaration
enum class AnchorTrackingStateSummary
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. This information is crucial for determining the reliability of anchor pose data.
Overview
Tracking states progress from not tracked to fully tracked, with limited tracking representing an intermediate state where tracking is possible but may be less reliable. Note: [TRACKED] can persist while a device is disturbed, such as a covered camera or a dark room, and persists indefinitely while the device stays still. It changes once confidence drops low enough. Use [AnchorUpdate.trackingConfidence] and [AnchorUpdate.trackingStateReason] to react more sensitively to device disturbances.
Example
val update = vpsSession.getAnchorUpdate(anchorId)
when (update.trackingState) {
AnchorTrackingState.NOT_TRACKED ->
println("Anchor is not currently being tracked")
AnchorTrackingState.LIMITED ->
println("Anchor tracking is limited - pose may be unreliable")
AnchorTrackingState.TRACKED ->
println("Anchor is fully tracked - pose is reliable")
}
Properties
| Name | Type | Summary |
|---|---|---|
| value | Int | - |
Cases
Functions
| Name | Type | Summary |
|---|---|---|
| From | AnchorTrackingState? | - |