SDKJava (Android) SDK

Example index

Java examples for the current Android SDK.

Current version · 2.0.0

Example index

Java examples for the current release. See Installation & requirements for dependencies and Quick start for the first read. Open the linked page and copy the class into the app; longer workflows show labelled excerpts.

Glove examples

Java sourceGoalMain API
QuickStart.javaDiscover the only glove and stream poseGloveDevice.pose().subscribe()
DiscoverGloves.javaList glove candidates and per-device errorsSdk.discoverGloves()
DeviceSelection.javaSelect by name and side, including ambiguityGlove.device(name, side)
DeviceInfo.javaRead identity, hand and transport typeGloveDevice.getDeviceInfo()
DeviceLifecycle.javaStart and stop each hand independentlyGloveDevice.start() / stop()
SubscriptionConfig.javaCount pose delivery under Latest / FIFOReadChannel.withConfig()
MultipleOutputs.javaDrive two named target outputs from one sourceTargetConfig / device.output(name)
ManualRuntime.javaAdvance updates step by stepGlove.update().sleep()
ForegroundRuntime.javaStream target output on the calling threadGlove.runForever()
BackgroundRuntime.javaRun in the background for a fixed durationGlove.runBackground()
AsyncRuntime.javaOne async read and a continuous flow readReadChannel.next() / publisher()
Haptics.javaSet, hold and clear hapticsdevice.haptics().set() / clear()
Imu.javaRead raw IMU counts or physical valuesdevice.imu().subscribe()
Pressure.javaRead 460 pressure points from one Tactile ENF Positioning Glove (VetraGlove HMP-MX)device.pressure()
TimeSync.javaSynchronize before start and while runningGlove.syncTime()
HostCaptureCalibration.javaCapture, confirm and calibrate both handsdevice.startCapture() / startCalibration()
CaptureQuality.javaAssess 30-frame hand pose quality windows and manual retentiondevice.createCaptureQualitySession() / assessStage()
ExternalInputManualUpdate.javaPush app frames and advance manuallydevice.pushFrame()
ExternalInputRunBackground.javaPush app frames with the SDK in the backgrounddevice.pushFrame()
Skeleton.javaRead built-in skeleton joints and posedevice.skeleton().jointAngles() / pose()
AlgorithmConfiguration.javaConfigure bone mode, algorithm parameters and packagesTargetAlgorithm / importAlgorithmArchive()
DebugTrace.javaEnable diagnostics and read target outputSdkConfig.builder().debug()

Exo+Glove composite examples

Java sourceGoalMain API
QuickStart.javaDiscover the composite device and stream both posessdk.start() / glove.device(side)
DiscoverExoGlove.javaRead composite member identity and Exo informationglove.device(side) / exo.device()
GloveRetargeting.javaRead both composite target outputsdevice.output(name)
GloveHaptics.javaSubmit and clear haptics requests on both handsdevice.haptics().set() / clear()
DeviceInfo.javaRead hand sources and Exo identityGloveDevice.getDeviceInfo()
Imu.javaRead Exo IMU over the shared linkpayload.torsoImu
Telemetry.javaRead glove pose, status and Exo telemetrypose().subscribe()
Lifecycle.javaStart, read, stop and close the composite devicesdk.update()

Set up one root Sdk and a shared serial port as shown in the Glove + Exo composite guide. The composite device accepts haptics requests without vibrating. To test vibration, run Haptics.java with a standalone glove that supports haptics.