Skip to main content
API Reference com.nianticspatial.nsdk

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. 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. ### Example kotlin 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") }

Declaration

enum class AnchorTrackingState

Properties

NameTypeSummary
valueInt
-

Cases

NameTypeSummary
LIMITEDLIMITED
The anchor is being tracked with limited accuracy. In this state, the system can provide pose estimates but they may be less reliable than fully tracked anchors. This often occurs during initialization or when visual conditions are challenging.
NOT_TRACKEDNOT_TRACKED
The anchor is not currently being tracked. This state indicates that the system cannot determine the anchor's position and orientation. This may occur when the device is not in the mapped area or when visual features are insufficient for tracking.
TRACKEDTRACKED
The anchor is being tracked with full accuracy. This is the optimal tracking state where the system can provide reliable pose estimates for the anchor. The anchor's position and orientation should be considered accurate for AR applications.