SharpaIT commited on
Commit
45afd55
·
verified ·
1 Parent(s): 5c3715a

Document TCP frames, hand joint mapping and tactile units

Browse files

Clarifies observed TCP reference frames, axis directions, metre/radian units and rotation-vector representation; documents the 22-joint hand mapping and elastomer-frame tactile wrench units (N and N*m). Adds HOME-pose Isaac Sim coordinate illustrations and a machine-readable joint mapping. Camera diagrams show nominal URDF frames only. Recorded data, videos, annotations and calibration parameter packages are unchanged.

README.md CHANGED
@@ -327,6 +327,30 @@ The 65D state, joint-torque, and action vectors use the following order:
327
  | 36-57 | `right_hand_j0` to `right_hand_j21` | Right dexterous-hand joints |
328
  | 58-64 | `motor_j0` to `motor_j6` | Torso / motor-related joints |
329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  ### TCP Pose State and Action
331
 
332
  `observation.state.tcp_pose` and `action.tcp_pose` are separate 12D float32 vectors. Components `0:6` contain the left-arm TCP pose and `6:12` contain the right-arm TCP pose.
@@ -335,7 +359,47 @@ The observation is read from the source `state/left_arm/tcp_pose` and `state/rig
335
 
336
  The existing 24D `observation.state.tcp` remains unchanged: left pose `0:6`, left force/torque `6:12`, right pose `12:18`, right force/torque `18:24`. Its two pose slices correspond to the new observed TCP-pose vector. The force/torque slices are 0 in every episode.
337
 
338
- The export does not fully declare TCP units, reference frames or rotation convention (`rotation_type` is null). Use the acquisition/controller convention before geometric transformations; do not infer Euler angles or quaternions from the vector width alone.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
 
340
  ### Video Streams
341
 
@@ -448,6 +512,12 @@ The dataset provides tactile information in structured numeric and image-based f
448
  - `observation.images.tactile_deform` visualizes contact-induced deformation patterns.
449
  - `observation.images.tactile_raw` preserves the raw tactile camera layout for custom preprocessing and representation learning.
450
 
 
 
 
 
 
 
451
  All tactile modalities are synchronized with visual observations, proprioception, and actions at 30 FPS. The 60D signal provides a compact tactile representation; the tactile video streams provide spatially resolved observations for models designed to process the additional input resolution.
452
 
453
  ## Usage Recommendations
 
327
  | 36-57 | `right_hand_j0` to `right_hand_j21` | Right dexterous-hand joints |
328
  | 58-64 | `motor_j0` to `motor_j6` | Torso / motor-related joints |
329
 
330
+ #### Hand joint mapping to the public URDF
331
+
332
+ The 22 hand joint positions are **absolute joint angles in radians (rad)**. The left hand occupies `observation.state[7:29]`, and the right hand occupies `observation.state[36:58]` (Python slices, end exclusive). The hand portions of `action` use the same joint order and angle unit.
333
+
334
+ Use the following ordered suffixes with the `left_` or `right_` prefix to obtain the corresponding joint names in the [public Sharpa Wave URDF](https://github.com/sharpa-robotics/sharpa-urdf-usd-xml/tree/0d19cac602f46456b819e4b6a2c09a74982c9a3e/wave_01):
335
+
336
+ ```python
337
+ hand_joint_suffixes = [
338
+ 'thumb_CMC_FE', 'thumb_CMC_AA', 'thumb_MCP_FE', 'thumb_MCP_AA', 'thumb_IP',
339
+ 'index_MCP_FE', 'index_MCP_AA', 'index_PIP', 'index_DIP',
340
+ 'middle_MCP_FE', 'middle_MCP_AA', 'middle_PIP', 'middle_DIP',
341
+ 'ring_MCP_FE', 'ring_MCP_AA', 'ring_PIP', 'ring_DIP',
342
+ 'pinky_CMC', 'pinky_MCP_FE', 'pinky_MCP_AA', 'pinky_PIP', 'pinky_DIP',
343
+ ]
344
+ left_joint_names = ["left_" + name for name in hand_joint_suffixes]
345
+ right_joint_names = ["right_" + name for name in hand_joint_suffixes]
346
+ left_hand_q = row["observation.state"][7:29]
347
+ right_hand_q = row["observation.state"][36:58]
348
+ ```
349
+
350
+ The nominal mapping is `q_urdf = q_dataset`. URDF `origin` defines the joint transform at zero angle, and `axis` defines the positive rotation direction. Do not subtract an episode's first frame as a new zero or apply an additional left/right sign flip. No per-device mechanical zero-offset correction is applied by this export.
351
+
352
+ Two SDK naming aliases are worth distinguishing: `thumb_DIP` corresponds to URDF `thumb_IP`, and `pinky_CMC_FE` corresponds to URDF `pinky_CMC`. The tactile finger name `little` corresponds to URDF `pinky`. A complete index-to-name mapping for both hands is provided in [hand_joint_mapping.json](assets/coordinate_frames/hand_joint_mapping.json).
353
+
354
  ### TCP Pose State and Action
355
 
356
  `observation.state.tcp_pose` and `action.tcp_pose` are separate 12D float32 vectors. Components `0:6` contain the left-arm TCP pose and `6:12` contain the right-arm TCP pose.
 
359
 
360
  The existing 24D `observation.state.tcp` remains unchanged: left pose `0:6`, left force/torque `6:12`, right pose `12:18`, right force/torque `18:24`. Its two pose slices correspond to the new observed TCP-pose vector. The force/torque slices are 0 in every episode.
361
 
362
+ `observation.state.tcp_pose` describes the left and right `hand_base_link` TCP frames relative to the robot base frame `root_link`. Each hand is represented as `[x, y, z, rx, ry, rz]`: position is in **metres (m)** and orientation is a **rotation vector in radians (rad)**, not Euler angles / roll-pitch-yaw or a quaternion. For a rotation vector `r`, its direction is the rotation axis and its norm is the rotation angle. Convert it with `scipy.spatial.transform.Rotation.from_rotvec(r)` or an equivalent Rodrigues implementation.
363
+
364
+ The robot base uses a right-handed coordinate system: **+X forward, +Y toward the robot's left, and +Z upward**. Position values refer to the hand-base origin expressed in this base frame, not the camera frame or a fingertip contact point.
365
+
366
+ The local TCP frames are `left_hand_base_link` and `right_hand_base_link`. In the URDF zero / straight-finger configuration, **+Z points from the wrist toward the fingers, +X points toward the palm / grasping side, and +Y points toward the little-finger side for the left hand and toward the thumb side for the right hand**. These local axes move with the hand. The columns of the decoded rotation matrix give the local TCP X, Y and Z directions expressed in `root_link`.
367
+
368
+ The corresponding homogeneous transform is `T_root_hand_base`, with `p_root = T_root_hand_base @ p_hand_base` for homogeneous column vectors. This TCP frame is distinct from each fingertip's tactile `elastomer` frame. Existing metadata may still contain `rotation_type: null`; this README explicitly documents the observed TCP convention without rewriting the recorded arrays. The frame definition and agreement with nominal URDF FK do not establish independently measured physical positioning accuracy.
369
+
370
+ #### Coordinate-frame illustrations
371
+
372
+ The robot is shown in its configured **HOME pose**, rendered in Isaac Sim. The overview is a front view. Axis colors are **X red, Y green, Z blue**; left and right refer to the robot's sides. The illustrations explain coordinate definitions and do not establish physical calibration accuracy.
373
+
374
+ ![North in HOME pose: base, hand TCP and camera coordinate frames](assets/coordinate_frames/home_front.png)
375
+
376
+ <details>
377
+ <summary>Base and left/right TCP close-ups</summary>
378
+
379
+ The two TCP origins are the corresponding `hand_base_link` origins. The local axes move with the hands; they are not fixed to the robot-base axes.
380
+
381
+ ![Robot base coordinate frame](assets/coordinate_frames/root_frame.png)
382
+
383
+ ![Left hand-base TCP coordinate frame](assets/coordinate_frames/left_tcp.png)
384
+
385
+ ![Right hand-base TCP coordinate frame](assets/coordinate_frames/right_tcp.png)
386
+
387
+ </details>
388
+
389
+ <details>
390
+ <summary>Head and wrist camera coordinate-frame close-ups</summary>
391
+
392
+ These camera diagrams use the **nominal URDF camera-link frames**. They are not recording-specific calibrated extrinsics. Camera intrinsics, distortion parameters and calibrated camera-to-hand transforms are outside this documentation update. Close-up viewing angles are chosen to make the 3D axes readable; the robot remains in the same HOME configuration.
393
+
394
+ ![Head-left camera coordinate frame](assets/coordinate_frames/head_left_camera.png)
395
+
396
+ ![Head-right camera coordinate frame](assets/coordinate_frames/head_right_camera.png)
397
+
398
+ ![Left wrist-camera coordinate frame](assets/coordinate_frames/left_wrist_camera.png)
399
+
400
+ ![Right wrist-camera coordinate frame](assets/coordinate_frames/right_wrist_camera.png)
401
+
402
+ </details>
403
 
404
  ### Video Streams
405
 
 
512
  - `observation.images.tactile_deform` visualizes contact-induced deformation patterns.
513
  - `observation.images.tactile_raw` preserves the raw tactile camera layout for custom preprocessing and representation learning.
514
 
515
+ The 60D numeric vector is ordered as **left hand first, then right hand**, with each hand ordered **thumb, index, middle, ring, little**. Each consecutive six-value block is `[Fx, Fy, Fz, Tx, Ty, Tz]` for one fingertip.
516
+
517
+ Each fingertip's six-axis force/torque values are expressed in its corresponding **`*_elastomer` local coordinate frame** in the Sharpa Wave URDF. **Force components `Fx`, `Fy`, `Fz` are in newtons (N); torque components `Tx`, `Ty`, `Tz` are in newton-metres (N·m).** The export preserves the SDK F6 values without an additional coordinate rotation or unit scaling. Dataset `little` channels correspond to the URDF `pinky` finger.
518
+
519
+ The `*_elastomer` frame is the tactile frame. The `*_fingertip` frame is a separate frame used for fingertip position / inverse-kinematics annotations, and `*_hand_base_link` is the hand-base TCP frame; these frames are not interchangeable.
520
+
521
  All tactile modalities are synchronized with visual observations, proprioception, and actions at 30 FPS. The 60D signal provides a compact tactile representation; the tactile video streams provide spatially resolved observations for models designed to process the additional input resolution.
522
 
523
  ## Usage Recommendations
assets/coordinate_frames/hand_joint_mapping.json ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "Sharpa-Robotics/SharpaDex-v1.0",
3
+ "urdf_repo": "sharpa-robotics/sharpa-urdf-usd-xml",
4
+ "urdf_revision": "0d19cac602f46456b819e4b6a2c09a74982c9a3e",
5
+ "joint_angle_unit": "radian",
6
+ "mapping_convention": "Nominal direct joint-angle mapping, q_urdf=q_dataset. No per-device zero-offset correction is claimed. URDF origin specifies the q=0 transform; positive rotation follows its axis.",
7
+ "left_state_slice_python": [
8
+ 7,
9
+ 29
10
+ ],
11
+ "right_state_slice_python": [
12
+ 36,
13
+ 58
14
+ ],
15
+ "joints": [
16
+ {
17
+ "hand_index": 0,
18
+ "left_state_index": 7,
19
+ "right_state_index": 36,
20
+ "left_urdf_joint": "left_thumb_CMC_FE",
21
+ "right_urdf_joint": "right_thumb_CMC_FE",
22
+ "sdk_sample_name": "thumb_CMC_FE"
23
+ },
24
+ {
25
+ "hand_index": 1,
26
+ "left_state_index": 8,
27
+ "right_state_index": 37,
28
+ "left_urdf_joint": "left_thumb_CMC_AA",
29
+ "right_urdf_joint": "right_thumb_CMC_AA",
30
+ "sdk_sample_name": "thumb_CMC_AA"
31
+ },
32
+ {
33
+ "hand_index": 2,
34
+ "left_state_index": 9,
35
+ "right_state_index": 38,
36
+ "left_urdf_joint": "left_thumb_MCP_FE",
37
+ "right_urdf_joint": "right_thumb_MCP_FE",
38
+ "sdk_sample_name": "thumb_MCP_FE"
39
+ },
40
+ {
41
+ "hand_index": 3,
42
+ "left_state_index": 10,
43
+ "right_state_index": 39,
44
+ "left_urdf_joint": "left_thumb_MCP_AA",
45
+ "right_urdf_joint": "right_thumb_MCP_AA",
46
+ "sdk_sample_name": "thumb_MCP_AA"
47
+ },
48
+ {
49
+ "hand_index": 4,
50
+ "left_state_index": 11,
51
+ "right_state_index": 40,
52
+ "left_urdf_joint": "left_thumb_IP",
53
+ "right_urdf_joint": "right_thumb_IP",
54
+ "sdk_sample_name": "thumb_DIP"
55
+ },
56
+ {
57
+ "hand_index": 5,
58
+ "left_state_index": 12,
59
+ "right_state_index": 41,
60
+ "left_urdf_joint": "left_index_MCP_FE",
61
+ "right_urdf_joint": "right_index_MCP_FE",
62
+ "sdk_sample_name": "index_MCP_FE"
63
+ },
64
+ {
65
+ "hand_index": 6,
66
+ "left_state_index": 13,
67
+ "right_state_index": 42,
68
+ "left_urdf_joint": "left_index_MCP_AA",
69
+ "right_urdf_joint": "right_index_MCP_AA",
70
+ "sdk_sample_name": "index_MCP_AA"
71
+ },
72
+ {
73
+ "hand_index": 7,
74
+ "left_state_index": 14,
75
+ "right_state_index": 43,
76
+ "left_urdf_joint": "left_index_PIP",
77
+ "right_urdf_joint": "right_index_PIP",
78
+ "sdk_sample_name": "index_PIP"
79
+ },
80
+ {
81
+ "hand_index": 8,
82
+ "left_state_index": 15,
83
+ "right_state_index": 44,
84
+ "left_urdf_joint": "left_index_DIP",
85
+ "right_urdf_joint": "right_index_DIP",
86
+ "sdk_sample_name": "index_DIP"
87
+ },
88
+ {
89
+ "hand_index": 9,
90
+ "left_state_index": 16,
91
+ "right_state_index": 45,
92
+ "left_urdf_joint": "left_middle_MCP_FE",
93
+ "right_urdf_joint": "right_middle_MCP_FE",
94
+ "sdk_sample_name": "middle_MCP_FE"
95
+ },
96
+ {
97
+ "hand_index": 10,
98
+ "left_state_index": 17,
99
+ "right_state_index": 46,
100
+ "left_urdf_joint": "left_middle_MCP_AA",
101
+ "right_urdf_joint": "right_middle_MCP_AA",
102
+ "sdk_sample_name": "middle_MCP_AA"
103
+ },
104
+ {
105
+ "hand_index": 11,
106
+ "left_state_index": 18,
107
+ "right_state_index": 47,
108
+ "left_urdf_joint": "left_middle_PIP",
109
+ "right_urdf_joint": "right_middle_PIP",
110
+ "sdk_sample_name": "middle_PIP"
111
+ },
112
+ {
113
+ "hand_index": 12,
114
+ "left_state_index": 19,
115
+ "right_state_index": 48,
116
+ "left_urdf_joint": "left_middle_DIP",
117
+ "right_urdf_joint": "right_middle_DIP",
118
+ "sdk_sample_name": "middle_DIP"
119
+ },
120
+ {
121
+ "hand_index": 13,
122
+ "left_state_index": 20,
123
+ "right_state_index": 49,
124
+ "left_urdf_joint": "left_ring_MCP_FE",
125
+ "right_urdf_joint": "right_ring_MCP_FE",
126
+ "sdk_sample_name": "ring_MCP_FE"
127
+ },
128
+ {
129
+ "hand_index": 14,
130
+ "left_state_index": 21,
131
+ "right_state_index": 50,
132
+ "left_urdf_joint": "left_ring_MCP_AA",
133
+ "right_urdf_joint": "right_ring_MCP_AA",
134
+ "sdk_sample_name": "ring_MCP_AA"
135
+ },
136
+ {
137
+ "hand_index": 15,
138
+ "left_state_index": 22,
139
+ "right_state_index": 51,
140
+ "left_urdf_joint": "left_ring_PIP",
141
+ "right_urdf_joint": "right_ring_PIP",
142
+ "sdk_sample_name": "ring_PIP"
143
+ },
144
+ {
145
+ "hand_index": 16,
146
+ "left_state_index": 23,
147
+ "right_state_index": 52,
148
+ "left_urdf_joint": "left_ring_DIP",
149
+ "right_urdf_joint": "right_ring_DIP",
150
+ "sdk_sample_name": "ring_DIP"
151
+ },
152
+ {
153
+ "hand_index": 17,
154
+ "left_state_index": 24,
155
+ "right_state_index": 53,
156
+ "left_urdf_joint": "left_pinky_CMC",
157
+ "right_urdf_joint": "right_pinky_CMC",
158
+ "sdk_sample_name": "pinky_CMC_FE"
159
+ },
160
+ {
161
+ "hand_index": 18,
162
+ "left_state_index": 25,
163
+ "right_state_index": 54,
164
+ "left_urdf_joint": "left_pinky_MCP_FE",
165
+ "right_urdf_joint": "right_pinky_MCP_FE",
166
+ "sdk_sample_name": "pinky_MCP_FE"
167
+ },
168
+ {
169
+ "hand_index": 19,
170
+ "left_state_index": 26,
171
+ "right_state_index": 55,
172
+ "left_urdf_joint": "left_pinky_MCP_AA",
173
+ "right_urdf_joint": "right_pinky_MCP_AA",
174
+ "sdk_sample_name": "pinky_MCP_AA"
175
+ },
176
+ {
177
+ "hand_index": 20,
178
+ "left_state_index": 27,
179
+ "right_state_index": 56,
180
+ "left_urdf_joint": "left_pinky_PIP",
181
+ "right_urdf_joint": "right_pinky_PIP",
182
+ "sdk_sample_name": "pinky_PIP"
183
+ },
184
+ {
185
+ "hand_index": 21,
186
+ "left_state_index": 28,
187
+ "right_state_index": 57,
188
+ "left_urdf_joint": "left_pinky_DIP",
189
+ "right_urdf_joint": "right_pinky_DIP",
190
+ "sdk_sample_name": "pinky_DIP"
191
+ }
192
+ ],
193
+ "source_dataset_revision": "5c3715ace9a09a23fc79e7d21e75b4c06e19e859"
194
+ }
assets/coordinate_frames/head_left_camera.png ADDED

Git LFS Details

  • SHA256: e4ed4f54cd8561baff09baef2c61f5c893e73688dae0118c6e44c2bd6c7152ea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
assets/coordinate_frames/head_right_camera.png ADDED

Git LFS Details

  • SHA256: c6e3d5affa069a2cc2436813c68b56a177ec15f5d18997c1bb612e46e12b192f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.04 MB
assets/coordinate_frames/home_front.png ADDED

Git LFS Details

  • SHA256: d3f8223e038635d1a263d75ee6e6a3e5aea00d51fed43b625d66ba141fca6d8d
  • Pointer size: 131 Bytes
  • Size of remote file: 755 kB
assets/coordinate_frames/left_tcp.png ADDED

Git LFS Details

  • SHA256: fa2c0a33bf70042913ad854ba673b12b253a6b23c635059535002ab807ae3e92
  • Pointer size: 132 Bytes
  • Size of remote file: 1.02 MB
assets/coordinate_frames/left_wrist_camera.png ADDED

Git LFS Details

  • SHA256: 9ad2c1d6dcd6e7556ecbd33ba99f53fb5aab9c19ad1779274ab0fa0b1234ca6f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.37 MB
assets/coordinate_frames/right_tcp.png ADDED

Git LFS Details

  • SHA256: b795885a2f5f58e00359f0c51298f4365422e671c8a9a7a35d3afb23d460119c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
assets/coordinate_frames/right_wrist_camera.png ADDED

Git LFS Details

  • SHA256: ddf8695dd4a31e54a6ec6ee5f50870892eb78c21f993e296c842d5d24a70fc70
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB
assets/coordinate_frames/root_frame.png ADDED

Git LFS Details

  • SHA256: 9630bc1795f0cac3c081104e1a6b80866009302409e6d502158749f7afc70fc9
  • Pointer size: 131 Bytes
  • Size of remote file: 644 kB