API referenceQnbot Exo PlusJava (Android)

Runtime and scheduling

Core interfaces

Current version · 1.4.0

Construct Sdk and obtain typed domain objects through sdk.glove() or sdk.exo(). Sdk is the sole SDK root and owns runtime and cleanup methods. A missing product getter or discovery method throws UnavailableFeatureException. update().sleep() uses the current scheduling result; requestStop() requests termination and join() waits for the runner. Create a new instance after closing.

The composite Glove + Exo examples use Glove, GloveConfig, GloveDevice, GloveFinger and Haptics, documented in the Glove Android API reference. Exo itself has no pressure channel; composite glove members provide pose(), imu(), pressure(), skeleton() and haptics(), whose signatures and models are documented there.

Sdk

com.qnbot.sdk.Sdk

Sdk.Sdk

Sdk(SdkConfig config, Context context)

Sdk.Sdk

Sdk(SdkConfig config, Context context, SerialTransport transport)

Sdk.connect

void connect()

Sdk.start

void start()

Sdk.update

UpdateResult update()

Sdk.runForever

void runForever()

Sdk.runBackground

void runBackground()

Sdk.requestStop

void requestStop()

Sdk.join

void join()

Sdk.stop

void stop()

Sdk.disconnect

void disconnect()

Sdk.health

Health health()

Sdk.close

void close()

Sdk.glove

Glove glove()

Sdk.discoverGloves

static List<DiscoveredGlove> discoverGloves()

static List<DiscoveredGlove> discoverGloves(Context context, SerialTransport transport) throws IOException

Sdk.exo

Exo exo()

Sdk.discoverExos

static List<DiscoveredExo> discoverExos()

static List<DiscoveredExo> discoverExos(Context context, SerialTransport transport) throws IOException

Sdk.initialize

static Path initialize(Context context)

static Path initialize(Context context, Path dataRoot)

SdkConfig

com.qnbot.sdk.SdkConfig

Field / enum value
final List<DeviceConfig> devices
final List<TargetConfig> targets
final DebugConfig debug
final AlgorithmsConfig algorithms

SdkConfig.builder

static Builder builder()

SdkConfig.Builder.devices

Builder devices(DeviceConfig... values)

SdkConfig.Builder.device

Builder device(DeviceConfig value)

SdkConfig.Builder.targets

Builder targets(TargetConfig... values)

SdkConfig.Builder.target

Builder target(TargetConfig value)

SdkConfig.Builder.debug

Builder debug(DebugConfig value)

SdkConfig.Builder.algorithms

Builder algorithms(AlgorithmsConfig value)

SdkConfig.Builder.build

SdkConfig build()

UpdateResult

com.qnbot.sdk.UpdateResult

Field / enum value
final long tick
final long ranTaskCount
final boolean hasNextTask

UpdateResult.sleep

SleepResult sleep()

SleepResult

com.qnbot.sdk.SleepResult

Field / enum value
READY / STOPPED / NO_TASKS

Health

com.qnbot.sdk.Health

Field / enum value
final boolean ok
final long warningCount
final long errorCount
final Map<String, DeviceHealth> devices
final String lastError
final boolean runtimeOverrun
final boolean topicCallbackError

DeviceHealth

com.qnbot.sdk.DeviceHealth

Field / enum value
final boolean connected
final boolean stale
final String lastError