CloudLocalizer Class

This type is an EasyAR Sense API in C#: CloudLocalizer . Some descriptions may not apply to Unity environment on this page.

This type is fully wrapped into Unity components: MegaTrackerFrameFilter . There is no need to use this type directly.

Description

CloudLocalizer implements cloud based localization.


Methods

isAvailable

C#

public static bool isAvailable()

Returns true.

create

C#

public static CloudLocalizer create(string server, string apiKey, string apiSecret, string appId)

Creates an instance and connects to the server.

resolve

C#

public virtual void resolve( InputFrame inputFrame, string message, DeviceAuxiliaryInfo deviceAuxInfo, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action< CloudLocalizerResult > callback)

Send localization request.

Send InputFrame to resolve a cloud localization. InputFrame should have at least image data and camera parameters.

message input is a json string.

acceleration is optional which is the readings from device accelerometer.

location is optional which is the readings from device location manager.

close

C#

public virtual void close()

Stops the localization and closes connection. The component shall not be used after calling close.