Dimios45 commited on
Commit
ea06097
·
verified ·
1 Parent(s): 0f7c9af

Document schema, recording setup, conversion and cropping

Browse files
Files changed (1) hide show
  1. README.md +108 -171
README.md CHANGED
@@ -3,186 +3,123 @@ license: apache-2.0
3
  task_categories:
4
  - robotics
5
  tags:
6
- - LeRobot
7
  - robotics
8
  - lerobot
9
  - yam
10
  - teleoperation
 
11
  - manipulation
12
- configs:
13
- - config_name: default
14
- data_files: data/*/*.parquet
15
  ---
16
 
17
- This dataset was created using [LeRobot](https://github.com/huggingface/lerobot).
18
-
19
-
20
- <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=Dimios45/yam-pick-duster">
21
- <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
22
- <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
23
- </a>
24
-
25
-
26
- ## Dataset Description
27
-
28
-
29
-
30
- - **Homepage:** [More Information Needed]
31
- - **Paper:** [More Information Needed]
32
- - **License:** apache-2.0
33
-
34
- ## Dataset Structure
35
-
36
- [meta/info.json](meta/info.json):
37
- ```json
38
- {
39
- "codebase_version": "v3.0",
40
- "fps": 25,
41
- "features": {
42
- "observation.state": {
43
- "dtype": "float32",
44
- "shape": [
45
- 7
46
- ],
47
- "names": [
48
- "right_joint_1",
49
- "right_joint_2",
50
- "right_joint_3",
51
- "right_joint_4",
52
- "right_joint_5",
53
- "right_joint_6",
54
- "right_gripper"
55
- ]
56
- },
57
- "action": {
58
- "dtype": "float32",
59
- "shape": [
60
- 7
61
- ],
62
- "names": [
63
- "right_joint_1",
64
- "right_joint_2",
65
- "right_joint_3",
66
- "right_joint_4",
67
- "right_joint_5",
68
- "right_joint_6",
69
- "right_gripper"
70
- ]
71
- },
72
- "observation.images.top": {
73
- "dtype": "video",
74
- "shape": [
75
- 480,
76
- 640,
77
- 3
78
- ],
79
- "names": [
80
- "height",
81
- "width",
82
- "channels"
83
- ],
84
- "info": {
85
- "video.height": 480,
86
- "video.width": 640,
87
- "video.codec": "av1",
88
- "video.pix_fmt": "yuv420p",
89
- "video.fps": 25,
90
- "video.channels": 3,
91
- "has_audio": false,
92
- "video.g": 2,
93
- "video.crf": 30,
94
- "video.preset": 12,
95
- "video.fast_decode": 0,
96
- "video.video_backend": "pyav",
97
- "video.extra_options": {},
98
- "is_depth_map": false
99
- }
100
- },
101
- "observation.images.right_wrist": {
102
- "dtype": "video",
103
- "shape": [
104
- 480,
105
- 640,
106
- 3
107
- ],
108
- "names": [
109
- "height",
110
- "width",
111
- "channels"
112
- ],
113
- "info": {
114
- "video.height": 480,
115
- "video.width": 640,
116
- "video.codec": "av1",
117
- "video.pix_fmt": "yuv420p",
118
- "video.fps": 25,
119
- "video.channels": 3,
120
- "has_audio": false,
121
- "video.g": 2,
122
- "video.crf": 30,
123
- "video.preset": 12,
124
- "video.fast_decode": 0,
125
- "video.video_backend": "pyav",
126
- "video.extra_options": {},
127
- "is_depth_map": false
128
- }
129
- },
130
- "timestamp": {
131
- "dtype": "float32",
132
- "shape": [
133
- 1
134
- ],
135
- "names": null
136
- },
137
- "frame_index": {
138
- "dtype": "int64",
139
- "shape": [
140
- 1
141
- ],
142
- "names": null
143
- },
144
- "episode_index": {
145
- "dtype": "int64",
146
- "shape": [
147
- 1
148
- ],
149
- "names": null
150
- },
151
- "index": {
152
- "dtype": "int64",
153
- "shape": [
154
- 1
155
- ],
156
- "names": null
157
- },
158
- "task_index": {
159
- "dtype": "int64",
160
- "shape": [
161
- 1
162
- ],
163
- "names": null
164
- }
165
- },
166
- "total_episodes": 50,
167
- "total_frames": 28068,
168
- "total_tasks": 1,
169
- "chunks_size": 1000,
170
- "data_files_size_in_mb": 100,
171
- "video_files_size_in_mb": 200,
172
- "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
173
- "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
174
- "robot_type": "yam",
175
- "splits": {
176
- "train": "0:50"
177
- }
178
- }
179
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
 
 
 
 
181
 
182
- ## Citation
 
 
183
 
184
- **BibTeX:**
185
 
186
- ```bibtex
187
- [More Information Needed]
188
- ```
 
3
  task_categories:
4
  - robotics
5
  tags:
 
6
  - robotics
7
  - lerobot
8
  - yam
9
  - teleoperation
10
+ - imitation-learning
11
  - manipulation
 
 
 
12
  ---
13
 
14
+ # yam-pick-duster joint-space (LeRobot v3.0)
15
+
16
+ 50 teleoperated demonstrations of a single I2RT YAM arm picking up a duster,
17
+ recorded in VR. **Joint-space** state and action, two camera views.
18
+
19
+ An end-effector-space version of the *same 50 takes* is published separately as
20
+ [`Dimios45/yam-pick-duster-ee`](https://huggingface.co/datasets/Dimios45/yam-pick-duster-ee) —
21
+ same episodes, same wall-clock spans, different action space and format.
22
+
23
+ ## At a glance
24
+
25
+ | | |
26
+ | --- | --- |
27
+ | Episodes | 50 |
28
+ | Frames | 28,068 @ 25 Hz (18.7 min) |
29
+ | Episode length | 396–785 frames (15.8–31.4 s), median 547 |
30
+ | Robot | I2RT YAM, 6-DoF + `linear_4310` gripper, right arm only |
31
+ | Cameras | `top` (fixed overhead), `right_wrist` — both 640×480 RGB, **uncropped** |
32
+ | Task | `"pick up the duster"` |
33
+
34
+ Roughly 88% of frames contain motion (min 74%, max 92%) — there are no idle or
35
+ dead takes in this set.
36
+
37
+ ## Schema
38
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ```
40
+ observation.state float32 (7,) [right_joint_1..6 (rad), right_gripper] measured
41
+ action float32 (7,) same layout commanded
42
+ observation.images.top video (480, 640, 3)
43
+ observation.images.right_wrist video (480, 640, 3)
44
+ ```
45
+
46
+ **Gripper convention: 0 = open, 1 = closed.** This is the inverse of i2rt's
47
+ native normalisation, which is converted at record time.
48
+
49
+ `action` is what the teleoperator commanded on that tick; `observation.state`
50
+ is what the arm measured. The command leads the measurement by a few ticks, as
51
+ expected of a position-controlled arm under load.
52
+
53
+ ## How it was recorded
54
+
55
+ Meta Quest controllers → WebXR → differential IK → joint commands, using
56
+ [vr-teleop-kit](https://github.com/Dream-Machines-Robotics/vr-teleop-kit).
57
+ Operator holds a grip button to clutch the arm; the trigger drives the gripper.
58
+
59
+ The arm is commanded at **200 Hz** and the dataset is *sampled* from that loop
60
+ at 25 Hz. Rate matters: an earlier version commanded at the dataset rate and
61
+ the arm was visibly jittery, because it received a new joint target only every
62
+ 1/fps s and the IK's per-tick velocity cap tightened by the same factor. Each
63
+ episode begins from the same home pose (start poses agree to 0.30 mm across all
64
+ 50 takes).
65
+
66
+ ## Loading
67
+
68
+ ```python
69
+ from lerobot.datasets.lerobot_dataset import LeRobotDataset
70
+
71
+ ds = LeRobotDataset("Dimios45/yam-pick-duster")
72
+ item = ds[0]
73
+ item["observation.state"] # (7,) joints + gripper
74
+ item["observation.images.top"] # (3, 480, 640) float32 in [0, 1], RGB
75
+ ```
76
+
77
+ Works directly with LeRobot-native policies (ACT, diffusion policy, pi0,
78
+ SmolVLA) — nothing extra needed.
79
+
80
+ ## Training a B-spline diffusion policy on this
81
+
82
+ The [bspline-policy](https://github.com/haoyu-x/simple_mobile_bsp) stack reads
83
+ robomimic HDF5, not LeRobot, and dispatches on the observation keys. Convert
84
+ with `tools/to_robomimic.py` from vr-teleop-kit:
85
+
86
+ ```bash
87
+ python tools/to_robomimic.py --from lerobot \
88
+ --repo-id Dimios45/yam-pick-duster --root <local-root> \
89
+ --output-path yam_joint.hdf5 \
90
+ --crop top_image=42,28,598,414 # optional, see below
91
+ ```
92
+
93
+ That yields `obs/joint_pos (N,7)`, `obs/top_image`, `obs/wrist_image`
94
+ (84×84 RGB) and `actions (N,7)` — the stack's `single_yam_joint` format, which
95
+ needs no rotation conversion and **no IK at deployment**. Matching `shape_meta`:
96
+
97
+ ```yaml
98
+ shape_meta: &shape_meta
99
+ obs:
100
+ top_image: {shape: [3, 84, 84], type: rgb}
101
+ wrist_image: {shape: [3, 84, 84], type: rgb}
102
+ joint_pos: {shape: [7]}
103
+ action:
104
+ shape: [7]
105
+ ```
106
+
107
+ ## Cropping
108
+
109
+ Frames are stored **uncropped** on purpose, so the crop can be retuned without
110
+ re-recording. The overhead camera's useful region is roughly
111
+ `x=42, y=28, w=598, h=414` — this drops a corner artefact and the bench rail —
112
+ but verify it against your own scene.
113
 
114
+ The wrist camera sees the room above the table horizon (~y=110 at the home
115
+ pose). That crop is **pose-dependent**: the horizon moves as the arm pitches,
116
+ so a fixed rectangle that is clean at one pose can cut into the table at
117
+ another. Check across your workspace before committing.
118
 
119
+ **Whatever crop you train with must be applied identically at deployment**, or
120
+ the policy sees an input distribution it never saw in training. The converter
121
+ stamps the crop into the HDF5 attributes so the choice travels with the data.
122
 
123
+ ## Licence
124
 
125
+ Apache-2.0.