API 参考VetraGlove ProJava (Android)

手套设备接口

基础接口

当前版本 · 2.0.0

GloveDevice

com.qnbot.sdk.glove.GloveDevice

GloveDevice.name

String name()

GloveDevice.sourceId

String sourceId()

GloveDevice.connect

void connect()

GloveDevice.start

void start()

GloveDevice.start

void start(CalibrationMode mode)

GloveDevice.stop

void stop()

GloveDevice.disconnect

void disconnect()

GloveDevice.health

Health health()

GloveDevice.getDeviceInfo

GloveDeviceInfo getDeviceInfo()

GloveDevice.pose

ReadChannel<GlovePose> pose()

GloveDevice.imu

ReadChannel<GloveImu> imu()

GloveDevice.emf

类型

ReadChannel<GloveEmf> emf()

选择与手部 pose 配对采集的原始 EMF I/Q 通道。选择时按当前已确认的 pose 采样率建立配对采集。按 source、session 和配对序号关联,读取时保留有符号积分值及无效标记。Android 在工作线程调用。用法见原始 EMF。

GloveDevice.pressure

ReadChannel<GlovePressure> pressure()

触觉 ENF 定位手套(VetraGlove HMP-MX)按设备测点顺序返回 460 个 0–255 的原始读数。

GloveDevice.skeleton

Skeleton skeleton()

GloveDevice.output

ReadChannel<HandJointCommand> output()

GloveDevice.output

ReadChannel<HandJointCommand> output(String outputName)

GloveDevice.pushFrame

GlovePose pushFrame(ExternalGloveFrame frame)

GloveDevice.calibrationProgress

ReadChannel<CalibrationProgress> calibrationProgress()

GloveDevice.calibrationProgress

ReadChannel<CalibrationProgress> calibrationProgress(String outputName)

GloveDevice.calibrationStatus

CalibrationReadiness calibrationStatus()

GloveDevice.calibrationStatus

CalibrationReadiness calibrationStatus(String outputName)

GloveDevice.createCaptureQualitySession

CaptureQualitySession createCaptureQualitySession()

为当前已验证设备创建独立动作质量检测会话,按设备身份与手侧自动选择检测器。用法见独立动作质量检测。

GloveDevice.captureStatus

CaptureReadiness captureStatus(List<String> packageIds, String operatorId)

GloveDevice.startCapture

CaptureSession startCapture( List<String> packageIds, String operatorId, boolean force)

GloveDevice.startCalibration

CalibrationSession startCalibration(CaptureSession completed, List<String> targets)

GloveDevice.captureProgress

ReadChannel<CaptureProgress> captureProgress()

GloveDevice.captureControl

CaptureControl captureControl()

GloveDevice.haptics

StateChannel<Haptics> haptics()

GloveDevice.status

ReadChannel<GloveStatus> status()

GloveDevice.close

void close()

Skeleton

com.qnbot.sdk.glove.Skeleton

Skeleton.jointAngles

ReadChannel<HandJointCommand> jointAngles()

Skeleton.pose

ReadChannel<HandSkeletonPose> pose()