API referenceVetraGlove ProC++

Calibration sessions

Capture & calibration

Current version · 2.0.0

Returned by device.start_calibration() to control calibration from a completed capture. Results follow the supplied target order.

CalibrationSession::snapshot()

Read a snapshot of the current session state.

Type

CalibrationSessionSnapshot CalibrationSession::snapshot() const;

Details

  • The session must remain open.

See also

CalibrationSession::result()

Query calibration results without waiting for completion.

Type

std::optional<std::vector<CalibrationResult>> CalibrationSession::result() const;

Returns

std::optional<std::vector<CalibrationResult>>. See CalibrationResult.

Details

  • The session must remain open.
  • Returns an empty value before completion; use wait() to await the results.

Example

calibration is the open session returned by start_calibration(). An unfinished session returns no result; querying it does not replace SDK scheduling.

if (const auto results = calibration.result()) {
    for (const auto& result : *results) {
        std::cout << result.target_id << " " << result.record_id << '\n';
    }
}

Related complete Capture workflow: host_capture_calibration.cpp.

See also

CalibrationSession::wait()

Wait for calibration and return the results for all targets.

Type

std::vector<CalibrationResult> CalibrationSession::wait() const;

Returns

std::vector<CalibrationResult>. See CalibrationResult.

Details

  • The session must remain open.
  • Waiting can report workflow failures, cancellation, or closure errors.

Example

calibration comes from start_calibration() and the SDK is advancing in background mode. wait() blocks this thread. With a manual update loop, poll snapshots and result() instead, as shown in the complete example.

const auto results = calibration.wait();
for (const auto& result : results) {
    std::cout << result.target_id << " " << result.record_id << '\n';
}
calibration.close();

Related complete Capture workflow: host_capture_calibration.cpp.

See also

CalibrationSession::cancel()

Cancel this calibration session.

Type

void CalibrationSession::cancel() const;

Returns

void.

Details

  • The session must remain open.

Cancelling an unfinished session discards this attempt’s new calibration results while preserving the previous successful compatible calibration and completed capture data. Later stop operations do not revoke a completed calibration.

See also

CalibrationSession::close()

Close the current scope and release its resources.

Type

void CalibrationSession::close() const;

Returns

void.

Details

  • Release the session handle; a closed session cannot be queried or controlled.

See also