Table of Contents

Class MegaTrackerFrameFilter

Namespace
easyar
Assembly
EasyAR.Sense.dll

Controls the easyar.MegaTracker in the scene, providing functional extensions in the Unity environment.

[RequireComponent(typeof(BlockHolder))]
public class MegaTrackerFrameFilter : FrameFilter
Inheritance
MegaTrackerFrameFilter

Properties

BlockHolder

Component that holds Blocks, holding and managing Blocks in the scene.

public BlockHolder BlockHolder { get; }

Property Value

CameraPositionOverride

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

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

Property Value

EnableLocalization

Whether to enable location. When location is not enabled, the location results returned by the server will not be output. Default is true.

Affects tracking performance. Do not use unless consulting with EasyAR and clearly understanding the impact.

public bool EnableLocalization { get; set; }

Property Value

EnableStatelessLocalization

Whether to enable stateless location. When stateless location is enabled, the previous location result is not used during location. Default is false.

Affects tracking performance. Do not use unless consulting with EasyAR and clearly understanding the impact.

public bool EnableStatelessLocalization { get; set; }

Property Value

LandmarkFilter

Mega Landmark filtering function when ServiceType is Landmark. At the start, you need to manually call FilterBySpotId(string, Action<MegaLandmarkFilterResponse>). The Tracker will not start tracking until the Filter returns Found.

public Optional<MegaLandmarkFilterWrapper> LandmarkFilter { get; }

Property Value

LocationInputMode

Location input mode. Needs to be set before starting the Session. For remote debugging or running on a computer, it must be set to Simulator, otherwise it will not work. For on-site use, set it to Onsite for optimal results.

public MegaLocationInputMode LocationInputMode { get; set; }

Property Value

MinInputFrameLevel

Minimum allowed MegaInputFrameLevel for input frames. If the frame source can only provide data with a lower dimension CameraTransformType, the Session will fail to start. Needs to be set before starting the Session.

public MegaInputFrameLevel MinInputFrameLevel { get; set; }

Property Value

ProximityLocation

Proximity location result.

public Optional<ProximityLocationResult> ProximityLocation { set; }

Property Value

RequestMessage

public string RequestMessage { get; set; }

Property Value

RequestTimeParameters

Request time parameter.

public MegaRequestTimeParameters RequestTimeParameters { get; set; }

Property Value

ServiceAccessData

Service access data. Needs to be set before starting the Session. No need to set when using GlobalConfig.

public ExplicitAddressAccessData ServiceAccessData { get; set; }

Property Value

ServiceAccessSource

Service access data source type. Needs to be set before starting the Session.

public MegaServiceAccessSourceType ServiceAccessSource { get; set; }

Property Value

ServiceType

EasyAR Mega service type. Needs to be set before starting the Session.

public MegaApiType ServiceType { get; set; }

Property Value

SimulatorLocation

Location data used when LocationInputMode == Simulator.

public Optional<Location> SimulatorLocation { get; set; }

Property Value

Methods

ResetTracker()

Reset tracker.

public void ResetTracker()

SwitchEndPoint(ExplicitAddressAccessData, BlockRootController)

Switch remote endpoint.

public void SwitchEndPoint(ExplicitAddressAccessData config, BlockRootController root)

Parameters

config
root

UpdateToken(string)

Update API Token.

public void UpdateToken(string token)

Parameters

token

Events

LocalizationRespond

Service location return event. This event is typically used for debugging, and when the event occurs, the position and state of objects in the scene do not correspond to the data in the event.

public event Action<MegaLocalizationResponse> LocalizationRespond

Event Type