OpenXrPerceptionManager


class OpenXrPerceptionManager


Implementation of the perception capabilities of a runtime using OpenXR.

Summary

Public functions

open Anchor

Defines a tracked location in the physical world.

open List<UUID>

Retrieves all the UUID instances from Anchor objects that have been persisted.

open List<HitResult>
hitTest(ray: Ray)

Performs a ray cast in the direction of the given ray in the latest camera view.

open Anchor

Loads an Anchor from local storage.

open Anchor

Loads an Anchor from a native pointer.

open Unit

Deletes a persisted Anchor from local storage.

Unit
update(xrTime: Long)

Updates the perception manager.

Public properties

open Collection<Trackable>

Returns the list of all known trackables.

Public functions

createAnchor

Added in 1.0.0-alpha01
open fun createAnchor(pose: Pose): Anchor

Defines a tracked location in the physical world.

getPersistedAnchorUuids

Added in 1.0.0-alpha01
open fun getPersistedAnchorUuids(): List<UUID>

Retrieves all the UUID instances from Anchor objects that have been persisted.

hitTest

Added in 1.0.0-alpha01
open fun hitTest(ray: Ray): List<HitResult>

Performs a ray cast in the direction of the given ray in the latest camera view.

loadAnchor

Added in 1.0.0-alpha01
open fun loadAnchor(uuid: UUID): Anchor

Loads an Anchor from local storage.

loadAnchorFromNativePointer

Added in 1.0.0-alpha01
open fun loadAnchorFromNativePointer(nativePointer: Long): Anchor

Loads an Anchor from a native pointer.

unpersistAnchor

Added in 1.0.0-alpha01
open fun unpersistAnchor(uuid: UUID): Unit

Deletes a persisted Anchor from local storage.

update

Added in 1.0.0-alpha01
fun update(xrTime: Long): Unit

Updates the perception manager.

Parameters
xrTime: Long

the number of nanoseconds since the start of the OpenXR epoch.

Public properties

trackables

Added in 1.0.0-alpha01
open val trackablesCollection<Trackable>

Returns the list of all known trackables.