API referenceVetraGlove ProC++

Frames and timestamps

Data models

Current version · 2.0.0

Optional fields use std::optional.

Sample<T>

Fields

FieldTypeDescription
valueTCurrent business data
sequencestd::uint64_tSDK sequence number, monotonically increasing within the same data category
source_timestd::optional<double>Data source time
observed_atdoubleMonotonic milliseconds since SDK creation

source_time is optional producer time in milliseconds: SDK-generated Glove time follows Unix milliseconds or the reference set by sync_time(), while explicit external input uses the caller’s clock domain. observed_at is monotonic milliseconds since SDK creation, not Unix time.

TelemetryMeta

Fields

FieldTypeDescription
sourcestd::stringSource ID that produced the data
timestampdoubleData timestamp
sequencestd::optional<std::uint64_t>Sequence number provided by the device or data source
frame_idstd::optional<std::string>Frame identifier provided by the device or data source

GloveNodePose and ExternalGloveFrame

GloveNodePose

Fields

FieldType and description
positionstd::array<double, 3>, 3D position
quaternion_xyzwstd::array<double, 4>, XYZW quaternion

ExternalGloveFrame

Fields

FieldType and description
thumb, index, middle, ring, pinkyGloveNodePose, fingertip poses of the five fingers
timestamp_msstd::optional<double>, preferred optional millisecond input; when omitted, the current shared time reference is used; see Timestamps & external time sync for the time semantics
timestamp_secstd::optional<double>, deprecated compatibility input; multiplied by 1000 and mutually exclusive with timestamp_ms

GloveHandPose

FieldTypeDescription
fingertipsstd::map<GloveFinger, GloveNodePose>Fingertip poses in metres and XYZW
glove_idstd::stringGlove data identifier
hand_sideSideHand side
finger_namesstd::vector<GloveFinger>Current finger order
raw_valid_maskstd::map<GloveFinger, bool>Raw-data validity per finger
held_maskstd::map<GloveFinger, bool>Whether each finger retains its previous valid value
quality_flagsstd::vector<std::string>Hand quality flags
coordinate_framestd::stringPhysical glove: device_hand; external hand input: external_hand
freshboolWhether the component updated in this snapshot; latest() does not consume this flag
timestamp_msdoubleComponent time in milliseconds
received_monotonic_msdoubleMonotonic receipt time in milliseconds
sessionstd::optional<std::uint64_t>Optional device session identifier
syncstd::optional<std::uint32_t>Optional synchronization identifier
pair_sequencestd::optional<std::uint32_t>Optional pair sequence
etstd::optional<GloveHelixEmfTime>Optional device event-time information

GloveWristPose

FieldTypeDescription
positionstd::optional<std::array<double, 3>>Optional position in metres
quaternion_xyzwstd::optional<std::array<double, 4>>Optional XYZW quaternion
validboolWhether the wrist observation is valid; invalid coordinates are absent
flagsstd::uint32_tDevice status flags
errorsstd::uint32_tDevice error flags
qualitystd::optional<double>Optional quality value
coordinate_framestd::stringdevice_wrist
freshboolWhether the component updated in this snapshot; latest() does not consume this flag
timestamp_msdoubleComponent time in milliseconds
received_monotonic_msdoubleMonotonic receipt time in milliseconds
sessionstd::optional<std::uint64_t>Optional device session identifier
syncstd::optional<std::uint32_t>Optional synchronization identifier
pair_sequencestd::optional<std::uint32_t>Optional pair sequence
etstd::optional<GloveHelixEmfTime>Optional device event-time information

GloveHelixEmfTime

Field / methodTypeDescription
vstd::uint8_tEvent-time format version
clockstd::stringDevice clock identifier
spanstd::array<std::uint32_t, 2>Device-reported range values, preserved as reported
ref()doubleRecommended reference time accessor in fractional device-clock milliseconds
error()std::optional<double>Recommended optional timing error accessor in milliseconds (empty means unknown)
b_error()std::optional<double>Recommended optional basis timing error accessor in milliseconds (0.0 is a valid zero)
basisstd::stringDevice-reported time basis
filteredstd::uint8_tDevice-reported filtering marker
sample_hzstd::uint32_tSample rate in Hz
hdr_gstd::array<std::array<std::uint32_t, 2>, 6>Device-reported 6 × 2 metadata
ref_usstd::uint32_tReference time in microseconds (marked @deprecated; use ref())
error_usstd::optional<std::uint32_t>Optional time error in microseconds (marked @deprecated; use error())
b_error_usstd::optional<std::uint32_t>Optional basis-time error in microseconds (marked @deprecated; use b_error())
ref_ms() / error_ms() / b_error_ms()double / std::optional<double>Deprecated millisecond accessor aliases (marked [[deprecated]]; use ref() / error() / b_error())

GlovePosePayload

FieldTypeDescription
handstd::optional<GloveHandPose>Optional hand component
wriststd::optional<GloveWristPose>Optional independent wrist component

GlovePose

FieldTypeDescription
metaTelemetryMetaSource, time and frame identifiers
payloadGlovePosePayloadHand and wrist components
qualitystd::map<std::string, Value>Extensible quality information

GloveImuRawCounts

FieldTypeDescription
gyroscope_rawstd::array<std::int16_t, 3>Three-axis raw gyroscope counts
accelerometer_rawstd::array<std::int16_t, 3>Three-axis raw accelerometer counts

GloveImuPhysicalValues

FieldTypeDescription
gyro_mdpsstd::optional<std::array<std::int32_t, 3>>Optional three-axis angular velocity in thousandths of a degree/second
accel_mgstd::optional<std::array<std::int32_t, 3>>Optional three-axis acceleration in thousandths of g

GloveImuValues

std::variant<GloveImuRawCounts, GloveImuPhysicalValues>

GloveImuSample

FieldTypeDescription
idstd::uint8_tSensor identifier, not an array position
locationGloveImuLocationSensor location; unknown when not identified
validboolWhether this sensor observation is valid
freshboolUpdate flag in this snapshot; latest() does not consume it
flagsstd::optional<std::uint32_t>Optional device status flags
age_msstd::optional<std::uint16_t>Optional data age in milliseconds
valuesGloveImuValuesRaw counts or physical values; check the type first

GloveMagnetometer

FieldTypeDescription
validboolWhether the observation is valid
xstd::optional<std::int32_t>Optional X-axis raw count; valid zero is retained
ystd::optional<std::int32_t>Optional Y-axis raw count
zstd::optional<std::int32_t>Optional Z-axis raw count
unitsstd::stringraw_counts

GloveImuLocation

unknown / board / thumb_tip / index_tip / middle_tip / ring_tip / pinky_tip / thumb_back / index_back / middle_back / ring_back / pinky_back / wrist

GloveImuPayload

FieldTypeDescription
imusstd::vector<GloveImuSample>Sensor observations selected by id and location
magnetometerstd::optional<GloveMagnetometer>Optional magnetometer observation
sessionstd::optional<std::uint64_t>Optional device session identifier
packet_sequencestd::optional<std::uint32_t>Optional packet sequence
syncstd::optional<std::uint32_t>Optional synchronization identifier
device_ts_msstd::optional<std::uint32_t>Optional device time in milliseconds
new_maskstd::optional<std::uint16_t>Optional sensor-update mask

GloveEmfChannel

FieldTypeDescription
channel_idstd::uint8_tEMF channel identifier.
listd::array<std::array<std::int64_t, 3>, 3>Low-frequency I signed integral matrix, 3 × 3.
lqstd::array<std::array<std::int64_t, 3>, 3>Low-frequency Q signed integral matrix, 3 × 3.
histd::array<std::array<std::int64_t, 3>, 3>High-frequency I signed integral matrix, 3 × 3.
hqstd::array<std::array<std::int64_t, 3>, 3>High-frequency Q signed integral matrix, 3 × 3.
samplesstd::optional<std::uint32_t>Optional sample count.
low_used_maskstd::optional<std::uint16_t>Optional low-frequency usage mask.
invalid_maskstd::optional<std::uint16_t>Optional invalid-value mask.

GloveEmfPayload

FieldTypeDescription
unitsstd::stringdemodulated_integral, demodulated integrals.
sessionstd::uint64_tDevice session identifier when available.
syncstd::optional<std::uint32_t>Device synchronization identifier when available.
frame_sequencestd::optional<std::uint32_t>Frame sequence corresponding to the hand pair_sequence.
etstd::optional<GloveHelixEmfTime>Optional device EMF event timing.
droppedstd::optional<std::uint32_t>Optional dropped-frame count.
channelsstd::vector<GloveEmfChannel>Raw integral matrices for each EMF channel.

GloveEmf

FieldTypeDescription
metaTelemetryMetaSource, time and frame identifiers.
payloadGloveEmfPayloadTyped channel content.
qualitystd::map<std::string, Value>Device quality information, preserving missing values.

GloveImu

FieldTypeDescription
metaTelemetryMetaSource, time and frame identifiers
payloadGloveImuPayloadPer-sensor IMU and optional magnetometer
qualitystd::map<std::string, Value>Extensible quality information

GlovePressure

GlovePressure returns readings and estimated_kpa in matching 460-point order. kPa estimates use an average palm curve, with raw values 107–255 sharing an approximately 40.01 kPa software ceiling. Frames without pressure produce no new sample.

FieldTypeDescription
readingsstd::array<std::uint8_t, 460>460 raw readings from 0 to 255 in device order.
estimated_kpastd::array<double, 460>460 kPa estimates in matching point order, using an average palm curve.