Component Prototype

Description

MultiMarker

Detection Component

 

Marker based tracker component. Based on ARToolKit library, the component tracks the camera to the best marker when detected (taking account the confidence value of the different markers detected). Transformation of the best marker position with respect to the camera (including the offsets) is given as an output.

There are two kind of offset:

  • general: translation and rotation of the output respect to the main marker (i.e. the first marker declared in the properties)
  • relative: translation and rotation of the other defined markers respect to the main one

Also a boolean slot set to true when any marker is detected and false when is not detected.

Number of markers and general offset are configurable properties of the component.

Marker pattern file name, marker width and relative offset (scale XYZ, translation XYZ and rotation Angle, XYZ) for each marker are also configurable properties of the component.

Out-slots

Name

Type

Description

detected

boolean

True when, at least, one marker is detected and false when is not detected

transformation

matrix

Transformation matrix of the best marker detected

markerId

integer

Id of the best marker detected (based on the definition order of the markers)

Properties

Name

Type

Description

 

General

iconFileName*

string

The filename of the icon shown for the component in the authoring environment.

numberOfMarkers

integer

Number of the possible markers than can be detected

offsetscaleX

double

scales the component in X coordinate

offsetscaleY

double

scales the component in Y coordinate

offsetscaleZ

double

scales the component in Z coordinate

offsetTranslationX

double

X coordinate of the translation (general offset)

offsetTranslationY

double

Y coordinate of the translation (general offset)

offsetTranslationZ

double

Z coordinate of the translation (general offset)

offsetRotationAngle

double

Angle of rotation (general offset)

offsetRotationX

double

X coordinate of the rotation axis (general offset)

offsetRotationY

double

Y coordinate of the rotation axis (general offset)

offsetRotationZ

double

Z coordinate of the rotation axis (general offset)

Particular (for each marker)

markerFile

string

File name of the marker pattern.

markerWidth

double

Width of the marker pattern

offsetscaleX

double

scales the component in X coordinate

offsetscaleY

double

scales the component in Y coordinate

offsetscaleZ

double

scales the component in Z coordinate

offsetTranslationX

double

X coordinate of the translation (relative offset respect to the main marker)

offsetTranslationY

double

Y coordinate of the translation (relative offset respect to the main marker)

offsetTranslationZ

double

Z coordinate of the translation (relative offset respect to the main marker)

offsetRotationAngle

double

Angle of rotation (relative offset respect to the main marker)

offsetRotationX

double

X coordinate of the rotation axis (relative offset respect to the main marker)

offsetRotationY

double

Y coordinate of the rotation axis (relative offset respect to the main marker)

OffsetRotationZ

double

Z coordinate of the rotation axis (relative offset respect to the main marker)