Skip to content
Select language:English

ARDK 1.5.6

class Catalog(origin: Coord2D, val session: CameraSession)

Manages a collection of MarkerInfo objects and handles their lifecycle within a CameraSession.

The catalog is responsible for:

  • storing marker configurations (MarkerInfo)

  • requesting marker detection updates from the session

  • attaching detected markers to the session

  • notifying the caller when markers are fully attached

Typical usage involves:

  1. Loading Catalog definitions (e.g., via load)

  2. Requesting attached markers using requestAttachedMarkers

  3. Receiving callbacks when markers are ready to be used

Parameters

origin

The origin of the local tangent plane.

session

The active CameraSession used to perform marker detection and attachment operations.

Constructors

constructor(origin: Coord2D, session: CameraSession)

Types

@Serializable
class Asset

Represents an asset with associated information.

@Serializable
class Label(val id: Long = 0, val message: String, val position: FloatArray = floatArrayOf(0.0f, 0.0f, 0.0f), val orientation: FloatArray = floatArrayOf(0.0f), val title: String? = null, val image: String? = null, val payload: String? = null)

Represents a label with associated information.

Properties

A stream of georeferenced tracking updates.

val ltp: LocalTangentPlane

The local tangent plane used for coordinate conversion.

The active CameraSession used to perform marker detection and attachment operations.

Functions

fun load(filename: String)

Loads marker definitions from the specified file and registers them within this Catalog.

fun requestAttachedMarkers(callback: (marker: Marker) -> Unit)

Requests detection and attachment of all registered markers.

fun toPosition(p: DoubleArray?): Vec3f?

Converts a position array to a Vec3f object by using the internal LocalTangentPlane.