API referenceVetraGlove ProC++

Skeleton and haptics data

Data models

Current version · 2.0.0

HandJointCommand

Fields

FieldTypeDescription
targetstd::stringTarget identifier
jointsstd::map<std::string, double>Mapping from joint names to target positions
timestampdoubleOutput timestamp, in milliseconds
sourcestd::optional<std::string>Source ID that produced the output
metadatastd::map<std::string, Value>Additional algorithm information

Skeleton fixed joints

When coming from skeleton().joint_angles(), joints always contains the following 25 active joints. The <side> in the names is replaced with left or right; read by joint name and do not treat the ordering of the std::map as the native index.

IndexJoint name
0<side>_thumb_cmc_abduction
1<side>_thumb_cmc_flexion
2<side>_thumb_cmc_opposition
3<side>_thumb_mcp_abduction
4<side>_thumb_mcp_flexion
5<side>_thumb_ip_flexion
6<side>_index_mcp_abduction
7<side>_index_mcp_flexion
8<side>_index_pip_flexion
9<side>_index_dip_flexion
10<side>_middle_mcp_abduction
11<side>_middle_mcp_flexion
12<side>_middle_pip_flexion
13<side>_middle_dip_flexion
14<side>_ring_cmc_cup
15<side>_ring_mcp_abduction
16<side>_ring_mcp_flexion
17<side>_ring_pip_flexion
18<side>_ring_dip_flexion
19<side>_little_cmc_opposition
20<side>_little_cmc_cup
21<side>_little_mcp_abduction
22<side>_little_mcp_flexion
23<side>_little_pip_flexion
24<side>_little_dip_flexion

HandSkeletonPose

Fields

FieldTypeDescription
timestamp_msdoubleSkeleton output time, in milliseconds
hand_sideSideLeft/right hand
coordinate_framestd::stringCurrently wrist_local
namesstd::vector<std::string>25 node names
positions_localstd::vector<std::array<double, 3>>25 local positions
orientations_local_xyzwstd::vector<std::array<double, 4>>25 local XYZW quaternions

Haptics

Haptics is a compatibility alias of GloveHaptics.

Fields

FieldTypeDescription
strengthsstd::map<GloveFinger, std::int32_t>Mapping from fingers to 0..127 haptic strength; may be empty; fingers can be thumb, index, middle, ring, pinky