API referenceVetraGlove ProC++

Capture plans and results

Data models

Current version · 2.0.0

In unified eight-gesture capture, capture_status() and start_capture() accept an empty package_ids list and use the configured built-in Skeleton plan. The plan contains 8 gestures with 30 frames each; every stage has optional=false. Package IDs do not change the gesture set; each algorithm fits only its declared subset.

CapturePlanStage

Fields

FieldType and description
stage_id, promptstd::string, stage identifier and action prompt
required_sample_count, optionalstd::uint64_t, bool, required sample count and whether it can be skipped

CapturePlan

Hand plans contain eight required gestures with 30 frames each. See Capture for their order and reuse rules.

Fields

FieldType and description
package_ids, stagesstd::vector<std::string>, std::vector<CapturePlanStage>, algorithm packages and stage order

CaptureStageReadiness

Fields

FieldType and description
stage_id, required_sample_count, stateStage identifier, required sample count, and reusable / needs_capture state

CaptureStageProgress

Fields

FieldType and description
stage_id, prompt, optionalCurrent stage identifier, action prompt, and whether it can be skipped
state, originCaptureStageState, CaptureStageOrigin, stage state and data origin
collected_sample_count, required_sample_countstd::uint64_t, collected sample count and required sample count
request_idstd::optional<std::string>, current control request identifier

CaptureFailure

Fields

FieldType and description
code, messagestd::string, stable failure code and display description

CaptureProgress

Fields

FieldType and description
session_id, session_state, failureSession identifier, state, and optional failure information
source_id, side, operator_id, stageSource, left/right hand, wearer, and current stage progress

CaptureSessionSnapshot

Fields

FieldType and description
side, plan, stateLeft/right hand, plan, and Session state
current_stage, request_idCurrent stage and request identifier, both std::optional<std::string>
collected_sample_count, required_sample_countstd::uint64_t, sampling progress of the current stage
remaining_stages, stage_progress, allowed_operationsRemaining stages, complete stage progress, and the currently allowed control operations
next_action, failureNext-step prompt and optional failure information

CaptureStageSamples

Fields

FieldType and description
stage_id, frame_countStage identifier and final frame count

CaptureResult

CaptureResult.created_at and CalibrationResult.created_at use milliseconds in the Glove time reference active at creation. Later calls to sync_time() do not rewrite saved results.

Fields

FieldType and description
operator_id, side, created_at, stage_samplesWearer, left/right hand, creation time, and per-stage capture summary

CaptureReadiness

capture_status(package_ids, operator_id) returns the overall readiness, the capture plan, and the per-stage readiness before a Capture Session is created.

Fields

FieldTypeDescription
stateCaptureReadinessStatenot_required, ready, or needs_capture
planCapturePlanThe resolved capture plan
stagesstd::vector<CaptureStageReadiness>Per-stage readiness

CaptureQualityDeviceModel

Selects the detector policy in create_capture_quality_session(); online devices resolve the model automatically through GloveDevice::create_capture_quality_session().

EnumeratorDescription
CaptureQualityDeviceModel::standardStandard glove detector policy (default)
CaptureQualityDeviceModel::hmp_mxVetraGlove HMP-MX detector policy
CaptureQualityDeviceModel::helixHelix detector policy

CaptureQualityAction

Advice returned in CaptureQualityFeedback::action.

EnumeratorMeaning
CaptureQualityAction::nextCurrent window passed; proceed to the next gesture
CaptureQualityAction::retry_stageRetry collecting the current gesture window
CaptureQualityAction::recapture_referenceRecapture the close reference

CaptureQualityFeedback

Returned by CaptureQualitySession::assess_stage(), independent of CaptureStageProgress.

Fields

FieldTypeDescription
acceptedboolWhether the current 30-frame window passed
actionCaptureQualityActionRecommended action for the application
reset_dependent_stagesboolWhether windows depending on the previous close reference are invalidated
reasonstd::stringShort Chinese rejection reason; empty when accepted
reason_enstd::stringShort English rejection reason; empty when accepted