MegaTracker Class

Description

Provides cloud based localization.

MegaTracker occupies 1 buffers of camera.

isAvailable

Check whether SparseSpatialMap is is available, always return true.

C

bool easyar_MegaTracker_isAvailable(void)

C++

static bool isAvailable()

Java

public static boolean isAvailable()

Kotlin

companion object fun isAvailable(): Boolean

Objective-C

+ (bool)isAvailable

Swift

public static func isAvailable() -> Bool

C#

public static bool isAvailable()

inputFrameSink

Input port for input frame. For MegaTracker to work, the inputFrame must include camera parameters, timestamp and spatial information. See also InputFrameSink .

C

void easyar_MegaTracker_inputFrameSink(easyar_MegaTracker * This, easyar_InputFrameSink * * Return)

C++

std::shared_ptr<InputFrameSink> inputFrameSink()

Java

public @Nonnull InputFrameSink inputFrameSink()

Kotlin

fun inputFrameSink(): InputFrameSink

Objective-C

- (easyar_InputFrameSink *)inputFrameSink

Swift

public func inputFrameSink() -> InputFrameSink

C#

public virtual InputFrameSink inputFrameSink()

setInputFrameSourceType

Sets source type of input frames.

C

void easyar_MegaTracker_setInputFrameSourceType(easyar_MegaTracker * This, easyar_InputFrameSourceType type)

C++

void setInputFrameSourceType(InputFrameSourceType type)

Java

public void setInputFrameSourceType(int type)

Kotlin

fun setInputFrameSourceType(type: Int): Unit

Objective-C

- (void)setInputFrameSourceType:(easyar_InputFrameSourceType)type

Swift

public func setInputFrameSourceType(_ type: InputFrameSourceType) -> Void

C#

public virtual void setInputFrameSourceType(InputFrameSourceType type)

accelerometerResultSink

Input port for accelerometer result. See also AccelerometerResultSink .

C

void easyar_MegaTracker_accelerometerResultSink(easyar_MegaTracker * This, easyar_AccelerometerResultSink * * Return)

C++

std::shared_ptr<AccelerometerResultSink> accelerometerResultSink()

Java

public @Nonnull AccelerometerResultSink accelerometerResultSink()

Kotlin

fun accelerometerResultSink(): AccelerometerResultSink

Objective-C

- (easyar_AccelerometerResultSink *)accelerometerResultSink

Swift

public func accelerometerResultSink() -> AccelerometerResultSink

C#

public virtual AccelerometerResultSink accelerometerResultSink()

locationResultSink

Optional. Input port for location result. See also LocationResultSink .

C

void easyar_MegaTracker_locationResultSink(easyar_MegaTracker * This, easyar_LocationResultSink * * Return)

C++

std::shared_ptr<LocationResultSink> locationResultSink()

Java

public @Nonnull LocationResultSink locationResultSink()

Kotlin

fun locationResultSink(): LocationResultSink

Objective-C

- (easyar_LocationResultSink *)locationResultSink

Swift

public func locationResultSink() -> LocationResultSink

C#

public virtual LocationResultSink locationResultSink()

proximityLocationResultSink

Optional. Input port for proximity location result. See also ProximityLocationResultSink .

C

void easyar_MegaTracker_proximityLocationResultSink(easyar_MegaTracker * This, easyar_ProximityLocationResultSink * * Return)

C++

std::shared_ptr<ProximityLocationResultSink> proximityLocationResultSink()

Java

public @Nonnull ProximityLocationResultSink proximityLocationResultSink()

Kotlin

fun proximityLocationResultSink(): ProximityLocationResultSink

Objective-C

- (easyar_ProximityLocationResultSink *)proximityLocationResultSink

Swift

public func proximityLocationResultSink() -> ProximityLocationResultSink

C#

public virtual ProximityLocationResultSink proximityLocationResultSink()

bufferRequirement

Camera buffers occupied in this component.

C

int easyar_MegaTracker_bufferRequirement(easyar_MegaTracker * This)

C++

int bufferRequirement()

Java

public int bufferRequirement()

Kotlin

fun bufferRequirement(): Int

Objective-C

- (int)bufferRequirement

Swift

public func bufferRequirement() -> Int32

C#

public virtual int bufferRequirement()

outputFrameSource

Output port for output frame. See also OutputFrameSource .

C

void easyar_MegaTracker_outputFrameSource(easyar_MegaTracker * This, easyar_OutputFrameSource * * Return)

C++

std::shared_ptr<OutputFrameSource> outputFrameSource()

Java

public @Nonnull OutputFrameSource outputFrameSource()

Kotlin

fun outputFrameSource(): OutputFrameSource

Objective-C

- (easyar_OutputFrameSource *)outputFrameSource

Swift

public func outputFrameSource() -> OutputFrameSource

C#

public virtual OutputFrameSource outputFrameSource()

create

Creates an instance.

C

void easyar_MegaTracker_create(easyar_String * server, easyar_String * apiKey, easyar_String * apiSecret, easyar_String * appId, easyar_MegaTracker * * Return)

C++

static std::shared_ptr<MegaTracker> create(std::string server, std::string apiKey, std::string apiSecret, std::string appId)

Java

public static @Nonnull MegaTracker create(java.lang.@Nonnull String server, java.lang.@Nonnull String apiKey, java.lang.@Nonnull String apiSecret, java.lang.@Nonnull String appId)

Kotlin

companion object fun create(server: String, apiKey: String, apiSecret: String, appId: String): MegaTracker

Objective-C

+ (easyar_MegaTracker *)create:(NSString *)server apiKey:(NSString *)apiKey apiSecret:(NSString *)apiSecret appId:(NSString *)appId

Swift

public static func create(_ server: String, _ apiKey: String, _ apiSecret: String, _ appId: String) -> MegaTracker

C#

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

setRequestTimeParameters

Sets request time parameters. timeoutMilliseconds is connection timeout. requestIntervalMilliseconds is the expected request interval, and the default value is 1000 and the minimum value is 300, with a longer value results a larger overall error.

C

void easyar_MegaTracker_setRequestTimeParameters(easyar_MegaTracker * This, easyar_OptionalOfInt timeoutMilliseconds, int requestIntervalMilliseconds)

C++

void setRequestTimeParameters(std::optional<int> timeoutMilliseconds, int requestIntervalMilliseconds)

Java

public void setRequestTimeParameters(java.lang.@Nullable Integer timeoutMilliseconds, int requestIntervalMilliseconds)

Kotlin

fun setRequestTimeParameters(timeoutMilliseconds: Int?, requestIntervalMilliseconds: Int): Unit

Objective-C

- (void)setRequestTimeParameters:(NSNumber *)timeoutMilliseconds requestIntervalMilliseconds:(int)requestIntervalMilliseconds

Swift

public func setRequestTimeParameters(_ timeoutMilliseconds: Int32?, _ requestIntervalMilliseconds: Int32) -> Void

C#

public virtual void setRequestTimeParameters(Optional<int> timeoutMilliseconds, int requestIntervalMilliseconds)

setResultPoseType

Sets type of result pose. enableLocalization and enableStabilization default to true.

C

void easyar_MegaTracker_setResultPoseType(easyar_MegaTracker * This, bool enableLocalization, bool enableStabilization)

C++

void setResultPoseType(bool enableLocalization, bool enableStabilization)

Java

public void setResultPoseType(boolean enableLocalization, boolean enableStabilization)

Kotlin

fun setResultPoseType(enableLocalization: Boolean, enableStabilization: Boolean): Unit

Objective-C

- (void)setResultPoseType:(bool)enableLocalization enableStabilization:(bool)enableStabilization

Swift

public func setResultPoseType(_ enableLocalization: Bool, _ enableStabilization: Bool) -> Void

C#

public virtual void setResultPoseType(bool enableLocalization, bool enableStabilization)

setRequestMessage

C

void easyar_MegaTracker_setRequestMessage(easyar_MegaTracker * This, easyar_String * message)

C++

void setRequestMessage(std::string message)

Java

public void setRequestMessage(java.lang.@Nonnull String message)

Kotlin

fun setRequestMessage(message: String): Unit

Objective-C

- (void)setRequestMessage:(NSString *)message

Swift

public func setRequestMessage(_ message: String) -> Void

C#

public virtual void setRequestMessage(string message)

setLocalizationCallback

Sets request delay. On every localization, the callback will be triggered.

C

void easyar_MegaTracker_setLocalizationCallback(easyar_MegaTracker * This, easyar_CallbackScheduler * callbackScheduler, easyar_OptionalOfFunctorOfVoidFromMegaTrackerLocalizationResponse callback)

C++

void setLocalizationCallback(std::shared_ptr<CallbackScheduler> callbackScheduler, std::optional<std::function<void(std::shared_ptr<MegaTrackerLocalizationResponse>)>> callback)

Java

public void setLocalizationCallback(@Nonnull CallbackScheduler callbackScheduler, @Nullable FunctorOfVoidFromMegaTrackerLocalizationResponse callback)

Kotlin

fun setLocalizationCallback(callbackScheduler: CallbackScheduler, callback: FunctorOfVoidFromMegaTrackerLocalizationResponse?): Unit

Objective-C

- (void)setLocalizationCallback:(easyar_CallbackScheduler *)callbackScheduler callback:(void (^)(easyar_MegaTrackerLocalizationResponse * response))callback

Swift

public func setLocalizationCallback(_ callbackScheduler: CallbackScheduler, _ callback: ((MegaTrackerLocalizationResponse) -> Void)?) -> Void

C#

public virtual void setLocalizationCallback(CallbackScheduler callbackScheduler, Optional<Action<MegaTrackerLocalizationResponse>> callback)

start

Start MegaTracker.

C

bool easyar_MegaTracker_start(easyar_MegaTracker * This)

C++

bool start()

Java

public boolean start()

Kotlin

fun start(): Boolean

Objective-C

- (bool)start

Swift

public func start() -> Bool

C#

public virtual bool start()

stop

Stop MegaTracker. Call start() to resume running.

C

void easyar_MegaTracker_stop(easyar_MegaTracker * This)

C++

void stop()

Java

public void stop()

Kotlin

fun stop(): Unit

Objective-C

- (void)stop

Swift

public func stop() -> Void

C#

public virtual void stop()

reset

Reset MegaTracker and clear all internal states.

C

void easyar_MegaTracker_reset(easyar_MegaTracker * This)

C++

void reset()

Java

public void reset()

Kotlin

fun reset(): Unit

Objective-C

- (void)reset

Swift

public func reset() -> Void

C#

public virtual void reset()

close

Close MegaTracker. MegaTracker can no longer be used.

C

void easyar_MegaTracker_close(easyar_MegaTracker * This)

C++

void close()

Java

public void close()

Kotlin

fun close(): Unit

Objective-C

- (void)close

Swift

public func close() -> Void

C#

public virtual void close()