Types in wvr_marker.h

WVR Marker define

  • Marker define
WVR_MAX_MARKER_NAME_SIZE

maximum size for marker’s name

WVR Marker enum

  • Marker enum
enum WVR_MarkerObserverTarget

enumerate different marker observer types.

Values:

WVR_MarkerObserverTarget_Aruco = 0

Specifies the observer target is Aruco.

WVR_MarkerObserverTarget_Max = 0x7FFFFFFF
enum WVR_MarkerObserverState

enumerate different marker observer state

Values:

WVR_MarkerObserverState_Idle = 0

indicates that marker observer is idle

WVR_MarkerObserverState_Detecting = 1

indicates that the surrounding markers are detected

WVR_MarkerObserverState_Tracking = 2

indicates that the indicated markers are tracked

WVR_MarkerObserverState_Max = 0x7FFFFFFF
enum WVR_MarkerTrackingState

enumerate different marker tracking state

Values:

WVR_MarkerTrackingState_Detected

Detected state

WVR_MarkerTrackingState_Tracked

Tracked state

WVR_MarkerTrackingState_Paused

Paused state

WVR_MarkerTrackingState_Stopped

Stopped state

WVR Marker struct

  • Marker struct
struct WVR_MarkerName

name is a null terminated character array of size WVR_MAX_MARKER_NAME_SIZE

Public Members

char name[WVR_MAX_MARKER_NAME_SIZE]

The name of the marker

struct WVR_ArucoMarker

returned aruco marker information

Public Members

WVR_Uuid uuid

indicates the uuid of the aruco marker

uint64_t trackerId

indicates the tracker id of the aruco marker

float size

indicates the size

WVR_MarkerTrackingState state

indicates the state

WVR_Pose_t pose

indicates the pose of the aruco marker

WVR_MarkerName markerName

indicates the name

struct WVR_ArucoMarkerData

returned aruco marker data

Public Members

uint64_t trackerId

indicates the tracker id of the aruco marker

float size

indicates the size

struct WVR_TrackableMarkerCreateInfo

The parameters to create a new trackable marker used in WVR_CreateTrackableMarker API.

Developers provide information to create an trackable, including uuid and markerName.

Public Members

WVR_Uuid uuid
WVR_MarkerName markerName
struct WVR_TrackableMarkerState

returned trackable marker state

Public Members

WVR_MarkerObserverTarget target

indicates the observer target

WVR_MarkerTrackingState state

indicates the state

WVR_Pose_t pose

indicates the pose of the trackable marker

WVR_MarkerName markerName

indicates the name