Skeleton and haptics data
Data models
Current version · 2.0.0
HandJointCommand
Fields
| Field | Type | Description |
|---|---|---|
target | std::string | Target identifier |
joints | std::map<std::string, double> | Mapping from joint names to target positions |
timestamp | double | Output timestamp, in milliseconds |
source | std::optional<std::string> | Source ID that produced the output |
metadata | std::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.
| Index | Joint 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
| Field | Type | Description |
|---|---|---|
timestamp_ms | double | Skeleton output time, in milliseconds |
hand_side | Side | Left/right hand |
coordinate_frame | std::string | Currently wrist_local |
names | std::vector<std::string> | 25 node names |
positions_local | std::vector<std::array<double, 3>> | 25 local positions |
orientations_local_xyzw | std::vector<std::array<double, 4>> | 25 local XYZW quaternions |
Haptics
Haptics is a compatibility alias of GloveHaptics.
Fields
| Field | Type | Description |
|---|---|---|
strengths | std::map<GloveFinger, std::int32_t> | Mapping from fingers to 0..127 haptic strength; may be empty; fingers can be thumb, index, middle, ring, pinky |