Plane
class Plane : Trackable
Describes the system's current best knowledge of a real-world planar surface.
Summary
Nested types |
|---|
class Plane.LabelA semantic description of a |
class Plane.State : Trackable.StateThe representation of the current state of a |
class Plane.TypeA simple summary of the normal vector of a |
Public companion functions |
|
|---|---|
StateFlow<Collection<Plane>> |
Emits the planes that are currently being tracked in the |
Public functions |
|
|---|---|
open AnchorCreateResult |
createAnchor(pose: Pose)Creates an |
Public properties |
|
|---|---|
open StateFlow<Plane.State> |
The current state of the |
Plane.Type |
Extension properties |
|
|---|---|
Flowable<Plane.State> |
The current state of the |
Public companion functions
subscribe
fun subscribe(session: Session): StateFlow<Collection<Plane>>
Emits the planes that are currently being tracked in the session.
Only Planes that are TrackingState.TRACKING will be emitted in the Collection. Instances of the same Plane will remain between subsequent emits to the StateFlow as long as they remain tracking.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
Public functions
createAnchor
open fun createAnchor(pose: Pose): AnchorCreateResult
Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if |
Public properties
Extension properties
stateAsFlowable
val Plane.stateAsFlowable: Flowable<Plane.State>
The current state of the Plane.