Capture plans and results
Data models
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
| Field | Type and description |
|---|---|
stage_id, prompt | std::string, stage identifier and action prompt |
required_sample_count, optional | std::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
| Field | Type and description |
|---|---|
package_ids, stages | std::vector<std::string>, std::vector<CapturePlanStage>, algorithm packages and stage order |
CaptureStageReadiness
Fields
| Field | Type and description |
|---|---|
stage_id, required_sample_count, state | Stage identifier, required sample count, and reusable / needs_capture state |
CaptureStageProgress
Fields
| Field | Type and description |
|---|---|
stage_id, prompt, optional | Current stage identifier, action prompt, and whether it can be skipped |
state, origin | CaptureStageState, CaptureStageOrigin, stage state and data origin |
collected_sample_count, required_sample_count | std::uint64_t, collected sample count and required sample count |
request_id | std::optional<std::string>, current control request identifier |
CaptureFailure
Fields
| Field | Type and description |
|---|---|
code, message | std::string, stable failure code and display description |
CaptureProgress
Fields
| Field | Type and description |
|---|---|
session_id, session_state, failure | Session identifier, state, and optional failure information |
source_id, side, operator_id, stage | Source, left/right hand, wearer, and current stage progress |
CaptureSessionSnapshot
Fields
| Field | Type and description |
|---|---|
side, plan, state | Left/right hand, plan, and Session state |
current_stage, request_id | Current stage and request identifier, both std::optional<std::string> |
collected_sample_count, required_sample_count | std::uint64_t, sampling progress of the current stage |
remaining_stages, stage_progress, allowed_operations | Remaining stages, complete stage progress, and the currently allowed control operations |
next_action, failure | Next-step prompt and optional failure information |
CaptureStageSamples
Fields
| Field | Type and description |
|---|---|
stage_id, frame_count | Stage 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
| Field | Type and description |
|---|---|
operator_id, side, created_at, stage_samples | Wearer, 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
| Field | Type | Description |
|---|---|---|
state | CaptureReadinessState | not_required, ready, or needs_capture |
plan | CapturePlan | The resolved capture plan |
stages | std::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().
| Enumerator | Description |
|---|---|
CaptureQualityDeviceModel::standard | Standard glove detector policy (default) |
CaptureQualityDeviceModel::hmp_mx | VetraGlove HMP-MX detector policy |
CaptureQualityDeviceModel::helix | Helix detector policy |
CaptureQualityAction
Advice returned in CaptureQualityFeedback::action.
| Enumerator | Meaning |
|---|---|
CaptureQualityAction::next | Current window passed; proceed to the next gesture |
CaptureQualityAction::retry_stage | Retry collecting the current gesture window |
CaptureQualityAction::recapture_reference | Recapture the close reference |
CaptureQualityFeedback
Returned by CaptureQualitySession::assess_stage(), independent of CaptureStageProgress.
Fields
| Field | Type | Description |
|---|---|---|
accepted | bool | Whether the current 30-frame window passed |
action | CaptureQualityAction | Recommended action for the application |
reset_dependent_stages | bool | Whether windows depending on the previous close reference are invalidated |
reason | std::string | Short Chinese rejection reason; empty when accepted |
reason_en | std::string | Short English rejection reason; empty when accepted |