PerceptionState
class PerceptionState
Represents the state of ARCore for Jetpack XR at an specific point in time.
Can be obtained from CoreState.perceptionState.
Summary
Public properties |
|
|---|---|
ArDevice |
the currently tracked device. |
DepthMap? |
the left depth map, or null when not supported by the current platform. |
Hand? |
the left hand, or null when not supported by the current platform. |
RenderViewpoint? |
the left viewpoint used for rendering, or null when not supported by the current platform. |
DepthMap? |
the mono depth map, or null when not supported by the current platform. |
RenderViewpoint? |
the mono viewpoint used for rendering, or null when not supported by the current platform. |
DepthMap? |
the right depth map, or null when not supported by the current platform. |
Hand? |
the right hand, or null when not supported by the current platform. |
RenderViewpoint? |
the right viewpoint used for rendering, or null when not supported by the current platform. |
ComparableTimeMark |
the time at which the state was computed. |
Collection<Trackable<Trackable.State>> |
the trackables that are currently being tracked. |
Face? |
the user's face, or null when not supported by the current platform. |
Public functions
Public properties
leftDepthMap
val leftDepthMap: DepthMap?
the left depth map, or null when not supported by the current platform.
leftHand
val leftHand: Hand?
the left hand, or null when not supported by the current platform.
leftRenderViewpoint
val leftRenderViewpoint: RenderViewpoint?
the left viewpoint used for rendering, or null when not supported by the current platform.
monoDepthMap
val monoDepthMap: DepthMap?
the mono depth map, or null when not supported by the current platform.
monoRenderViewpoint
val monoRenderViewpoint: RenderViewpoint?
the mono viewpoint used for rendering, or null when not supported by the current platform.
rightDepthMap
val rightDepthMap: DepthMap?
the right depth map, or null when not supported by the current platform.
rightHand
val rightHand: Hand?
the right hand, or null when not supported by the current platform.
rightRenderViewpoint
val rightRenderViewpoint: RenderViewpoint?
the right viewpoint used for rendering, or null when not supported by the current platform.
timeMark
val timeMark: ComparableTimeMark
the time at which the state was computed.
trackables
val trackables: Collection<Trackable<Trackable.State>>
the trackables that are currently being tracked.
userFace
val userFace: Face?
the user's face, or null when not supported by the current platform.