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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
---
license: apache-2.0
task_categories:
- robotics
tags:
- LeRobot
- dexsuite
- scripted-expert
- dart
- force
- close_window_spray
- sharpa
- floating
configs:
- config_name: default
  data_files: data/*/*.parquet
---

This dataset was created using [LeRobot](https://github.com/huggingface/lerobot).


<a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=dexsuite/close_window_spray_floating_sharpa_scripted">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
</a>


## Dataset Description

Scripted-expert DexSuite data for **close_window_spray** with the floating wrist and the Sharpa hand: 200 successful episodes (138,779 frames) from DexSuite's scripted task controller with grasp-recovery perturbations (DART) and randomized object and start-pose initialization, including per-finger contact forces. This task is not part of the DexSuite benchmark. A double-hung window stands on the table with its lower sash raised; the hand pushes the sash shut by its lift rail, picks up a trigger spray bottle, pulls the trigger with the index finger and sprays the closed pane. The task succeeds once the sash is closed (within 2 cm) and the spray has hit the glass on 20 control steps with the trigger pulled through at least 70% of its travel and the nozzle 14 to 36 cm from the glass. All episodes are successful, recorded at 20 Hz with a static front camera and a wrist camera (224x224 RGB video), proprioception and ground-truth object state, under DexSuite's shared observation/action interface (actions are OSC pose offsets from the episode-start end-effector pose plus gripper/hand joint targets). As in every DexSuite set, frame t stores the observation before action t; the success flag on the last frame refers to the transition it triggers, so the terminal state itself is not stored.

The controller closes the sash with one of two fingertip presses on the rail (paired fingertips on its left in 102 episodes, a relaxed press at its center in 98), wraps the bottle into the palm, carries it toward the pane, frees the index finger, sets it on the trigger and sprays from a sampled distance. It keeps spraying after the first success, so `success` and `terminated` are true on every frame from the first successful transition on (the last 40 frames of an episode at the median). DART: during recording the environment executed the controller's command plus a smooth Ornstein-Uhlenbeck perturbation of the wrist pose (1.5 cm and 4 degrees, 0.6 s time constant, scaled by 1.0 / 0.5 / 0.25 in the free / approach / in-hand phases and switched off while closing the sash, sliding the palm onto the bottle, carrying it and working the trigger), and the recorded action is the controller's clean command, its correction from the perturbed state (Laskey et al., 2017). The command the environment actually executed at step t is stored in `obs.state.other.action` of frame t+1, so replaying `action` open loop does not reproduce the recorded episodes. Each episode randomizes the bottle position (±10 cm in x and y) and yaw (±15°), the start wrist pose (±5 cm and ±12° per axis) and the relaxed finger pose; 200 of 499 attempts were kept, the other 299 failed the controller's own checks and were discarded.

The recording uses 8 physics substeps per control step (`physics_substeps: 8` in `meta/env_config.json`; DexSuite's default is 2), so build evaluation environments from `meta/env_config.json`. The front camera is the window task's own view (`window_front`). Close Window and Spray is not in the PyPI package; clone the DexSuite repository to build its environment.

The robot is an arm-less floating wrist (a virtual 6-DoF gantry) carrying the right Sharpa hand (22 DoF); the 29-D action is 7 `osc_pose_abs_quat` values (position offset and orientation relative to the episode-start wrist pose) followed by 22 hand joint position targets in radians. The hand is `sharpa_fardexbot`, the right Sharpa hand carrying the wrist-camera mount of the real handheld rig (mount plate, quick changer and D405 body, which collide with the scene and show in the front-camera frames); DexSuite ships it under that name. Besides the standard DexSuite keys, every frame carries per-finger contact forces (`obs.state.other.finger_force_world`, `finger_force_norm` in N, `finger_force_display`, `finger_force_saturated`, `finger_contact`; thumb, index, middle, ring, pinky) and the controller's phase (`obs.state.other.controller_phase`: 0 free, 1 approach, 2 in hand) and stage (`obs.state.other.controller_stage`, named in `meta/controller.json`). `meta/env_config.json` rebuilds the environment and `meta/controller_episodes/episode_*.json` keeps each episode's scene seed, style seed and controller parameters. Depth was rendered during collection but is not included.

- **Homepage:** https://huggingface.co/dexsuite
- **Paper:** https://arxiv.org/abs/2610.37799
- **License:** apache-2.0

## Loading

```python
from lerobot.datasets.lerobot_dataset import LeRobotDataset

dataset = LeRobotDataset("dexsuite/close_window_spray_floating_sharpa_scripted")
frame = dataset[0]  # action, obs.state.*, obs.cameras.front.rgb and obs.cameras.wrist.rgb (3x224x224 float in [0, 1])
```

## Training

DexSuite's robomimic entry point converts the set to HDF5 and trains on it:

```bash
python -m scripts.imitation_learning.robomimic.train \
  --dataset close_window_spray_floating_sharpa_scripted \
  --config bc \
  --sensors state \
  --architecture mlp
```

`--sensors cameras --cameras front` trains on the front camera and robot proprio instead, and `--config act`, `act_img` or `diffusion` select the other policy recipes (see `scripts/imitation_learning/robomimic/README.md`). `--dataset dexsuite/close_window_spray_floating_sharpa_scripted` works as well.

Rollouts build the environment from `meta/env_config.json`, 8 physics substeps included.

## Dataset Structure

[meta/info.json](meta/info.json):
```json
{
    "codebase_version": "v3.0",
    "robot_type": null,
    "total_episodes": 200,
    "total_frames": 138779,
    "total_tasks": 1,
    "chunks_size": 1000,
    "data_files_size_in_mb": 100,
    "video_files_size_in_mb": 200,
    "fps": 20,
    "splits": {
        "train": "0:200"
    },
    "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
    "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
    "features": {
        "obs.state.gripper.qpos": {
            "dtype": "float32",
            "shape": [
                22
            ]
        },
        "obs.state.gripper.qtorque": {
            "dtype": "float32",
            "shape": [
                22
            ]
        },
        "obs.state.gripper.qvel": {
            "dtype": "float32",
            "shape": [
                22
            ]
        },
        "obs.state.gripper.tcp_pos": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.gripper.tcp_quat": {
            "dtype": "float32",
            "shape": [
                4
            ]
        },
        "reward": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "truncated": {
            "dtype": "bool",
            "shape": [
                1
            ]
        },
        "terminated": {
            "dtype": "bool",
            "shape": [
                1
            ]
        },
        "success": {
            "dtype": "bool",
            "shape": [
                1
            ]
        },
        "failure": {
            "dtype": "bool",
            "shape": [
                1
            ]
        },
        "action": {
            "dtype": "float32",
            "shape": [
                29
            ]
        },
        "obs.state.manipulator.eef_pos": {
            "dtype": "float32",
            "shape": [
                1,
                3
            ]
        },
        "obs.state.manipulator.eef_quat": {
            "dtype": "float32",
            "shape": [
                1,
                4
            ]
        },
        "obs.state.manipulator.qpos": {
            "dtype": "float32",
            "shape": [
                6
            ]
        },
        "obs.state.manipulator.qtorque": {
            "dtype": "float32",
            "shape": [
                6
            ]
        },
        "obs.state.manipulator.qvel": {
            "dtype": "float32",
            "shape": [
                6
            ]
        },
        "obs.state.other.action": {
            "dtype": "float32",
            "shape": [
                29
            ]
        },
        "obs.state.other.bottle_pos": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.bottle_quat": {
            "dtype": "float32",
            "shape": [
                4
            ]
        },
        "obs.state.other.bottle_vel": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.circle_complete": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.circle_sector_coverage": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.circle_spray_steps": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.last_action": {
            "dtype": "float32",
            "shape": [
                29
            ]
        },
        "obs.state.other.latch_q": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.nozzle_dir": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.nozzle_pos": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.paint_debug_spheres": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.pane_center": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.pane_coverage": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.pane_normal": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.pane_spray_complete": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.pane_spray_steps": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.pull_frac": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.sash_closed": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.sash_frac": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.sash_pos": {
            "dtype": "float32",
            "shape": [
                3
            ]
        },
        "obs.state.other.sash_q": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.spray_active": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.state.other.trigger_q": {
            "dtype": "float32",
            "shape": [
                1
            ]
        },
        "obs.cameras.front.rgb": {
            "dtype": "video",
            "shape": [
                224,
                224,
                3
            ],
            "info": {
                "video.height": 224,
                "video.width": 224,
                "video.codec": "av1",
                "video.pix_fmt": "yuv420p",
                "video.is_depth_map": false,
                "video.fps": 20,
                "video.channels": 3,
                "has_audio": false
            }
        },
        "obs.cameras.wrist.rgb": {
            "dtype": "video",
            "shape": [
                224,
                224,
                3
            ],
            "info": {
                "video.height": 224,
                "video.width": 224,
                "video.codec": "av1",
                "video.pix_fmt": "yuv420p",
                "video.is_depth_map": false,
                "video.fps": 20,
                "video.channels": 3,
                "has_audio": false
            }
        },
        "obs.state.other.finger_force_world": {
            "dtype": "float32",
            "shape": [
                5,
                3
            ]
        },
        "obs.state.other.finger_force_norm": {
            "dtype": "float32",
            "shape": [
                5
            ]
        },
        "obs.state.other.finger_force_display": {
            "dtype": "float32",
            "shape": [
                5
            ]
        },
        "obs.state.other.finger_force_saturated": {
            "dtype": "bool",
            "shape": [
                5
            ]
        },
        "obs.state.other.finger_contact": {
            "dtype": "bool",
            "shape": [
                5
            ]
        },
        "obs.state.other.controller_phase": {
            "dtype": "int64",
            "shape": [
                1
            ]
        },
        "obs.state.other.controller_stage": {
            "dtype": "int64",
            "shape": [
                1
            ]
        },
        "timestamp": {
            "dtype": "float32",
            "shape": [
                1
            ],
            "names": null
        },
        "frame_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null
        },
        "episode_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null
        },
        "index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null
        },
        "task_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null
        }
    },
    "task": "close_window_spray",
    "options": null
}
```


## Citation

**BibTeX:**

```bibtex
[More Information Needed]
```