Table of Contents

Class MegaGoTrackerFrameFilter

Namespace
easyar
Assembly
EasyAR.Sense.dll

A MonoBehaviour that controls easyar.MegaGoTracker in the scene and provides functional extensions in the Unity environment.

public class MegaGoTrackerFrameFilter : FrameFilter
Inheritance
MegaGoTrackerFrameFilter

Properties

CameraPositionOverride

Override value of the camera position relative to the map block. After it is set, the tracker outputs the override value instead of using the corresponding coordinates in the input frame data. It can be used to improve output pose accuracy when map information is known and sensors are limited.

public (Optional<float> x, Optional<float> y, Optional<float> z) CameraPositionOverride { get; set; }

EnableStatelessLocalization

Whether to enable stateless localization. When stateless localization is enabled, the previous localization result is not used during localization. The default is false.

It affects tracking results. Do not use it unless you have consulted EasyAR and clearly understand the impact.

public bool EnableStatelessLocalization { get; set; }

Error

Error message when Status is Error.

public Optional<MegaGoTrackerError> Error { get; }

MinInputFrameLevel

The minimum allowed MegaInputFrameLevel for input frames. If the frame source can only provide lower-dimensional CameraTransformType data, Session startup will fail. It must be set before Session startup.

public MegaInputFrameLevel MinInputFrameLevel { get; set; }

Status

Current working status.

public MegaGoTrackerStatus Status { get; }

Target

public Optional<MegaGoBlockController> Target { get; }

enabled

Starts/stops tracking while ARSession is running. After the session starts, tracking starts only when MonoBehaviour.enabled is true.

public bool enabled { get; set; }

Events

LocalizationRespond

Localization event. This event is usually used for debug.

public event Action<MegaGoTrackerLocalizationResponse> LocalizationRespond

TargetLoad

Event when Block loading is completed.

public event Action<MegaGoBlockController, MegaGoTargetLoadStatus> TargetLoad

TargetUnload

Event when Block unloading is completed.

public event Action<MegaGoBlockController> TargetUnload