骨骼与震动数据
数据模型
当前版本 · 2.0.0
HandJointCommand
字段
| 字段 | 类型 | 说明 |
|---|---|---|
target | std::string | 目标标识 |
joints | std::map<std::string, double> | 关节名称到目标位置的映射 |
timestamp | double | 输出时间戳,单位毫秒 |
source | std::optional<std::string> | 产生输出的 source ID |
metadata | std::map<std::string, Value> | 算法附加信息 |
Skeleton 固定关节
来自 skeleton().joint_angles() 时,joints 固定包含以下 25 个 active joints。名称中的
<side> 替换为 left 或 right;应按关节名读取,不要把 std::map 的排序当作原生索引。
| 索引 | 关节名 |
|---|---|
| 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
字段
| 字段 | 类型 | 说明 |
|---|---|---|
timestamp_ms | double | 骨骼输出时间,单位为毫秒 |
hand_side | Side | 左右手 |
coordinate_frame | std::string | 当前为 wrist_local |
names | std::vector<std::string> | 25 个节点名称 |
positions_local | std::vector<std::array<double, 3>> | 25 个局部位置 |
orientations_local_xyzw | std::vector<std::array<double, 4>> | 25 个局部 XYZW 四元数 |
Haptics
GloveHaptics 的兼容别名为 Haptics。
字段
| 字段 | 类型 | 说明 |
|---|---|---|
strengths | std::map<GloveFinger, std::int32_t> | 手指到 0..127 震动强度的映射;可为空,手指可选 thumb、index、middle、ring、pinky |