File size: 5,902 Bytes
15aadce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
---

license: apache-2.0
task_categories:
- robotics
tags:
- LeRobot
- piper
- block-stacking
- lerobot
- mujoco
configs:
- config_name: default
  data_files: data/*/*.parquet
---


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

## Dataset Description

Recovery ("perturbed") demonstrations of the 8-layer block stacking task with an AgileX PiPER arm, simulated in MuJoCo
with the same scene, cameras and controller as [ketiholo/stack8_mujoco_sim](https://huggingface.co/datasets/ketiholo/stack8_mujoco_sim).

In about half of the picks and places the scripted controller is deliberately disturbed and then recovers:
- **pick**: before the wrist-camera servo the arm is sent to a wrong hover pose (5-15 mm off, up to +-10 deg) and the
  controller corrects it;
- **place**: the held block is first brought off-center over the stack and then corrected; some blocks are placed
  slightly unevenly on purpose (long side up to 10 mm, short side 2-3 mm) so later layers must compensate.

All 350 episodes end with a standing 8-layer tower (red base + 7 blocks). Units as in stack8_mujoco_sim:
`observation.state` = joints in millidegrees + gripper reading in micrometers, `action` = joints in radians + gripper
command in meters.

### `features/` (extra, not part of the LeRobot format)
One `episode_XXXXXX.parquet` (+ `.json` summary) per episode, extracted from the top-camera video with the controller's
own HSV block detector and from forward kinematics of the joints (every frame; detections on every 3rd frame):
- `phase` (0 start, 1 to_block, 2 align, 3 descend, 4 grasp, 5 carry, 6 place_descend, 7 release, 8 measure_stack, 9 end),

  `layer`, `next_color`;
- tool tip pose `tcp_x/y/z/yaw` (mm, deg, robot base frame) and of the commanded joints `act_*`, gripper reading /
  command `grip_mm`, `grip_cmd_mm`;
- stack pose `stack_x/y/yaw/top_z`; the controller's next target block `tgt_*` (raw top-camera detection);
- hindsight endpoints of the current layer `pick_*`, `place_*` (tip pose at grasp start / release start);
- 7 block tracks `b{k}_color/x/y/yaw/seen/status/age` (status 0 table, 1 held, 2 placed).
Raw top-camera positions carry a fixed offset in this simulation; the affine correction fitted over 11,080 blocks
(x' = 0.9917 x + 0.0034 y + 9.17, y' = -0.0031 x + 0.9969 y + 0.73, mm) brings the median error to 0.5 mm.

- **License:** apache-2.0

## Dataset Structure

[meta/info.json](meta/info.json):
```json

{

    "codebase_version": "v3.0",

    "robot_type": "piper_follower",

    "total_episodes": 350,

    "total_frames": 1421528,

    "total_tasks": 1,

    "chunks_size": 1000,

    "data_files_size_in_mb": 100,

    "video_files_size_in_mb": 500,

    "fps": 30,

    "splits": {

        "train": "0:350"

    },

    "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": {

        "action": {

            "dtype": "float32",

            "shape": [

                7

            ],

            "names": [

                "joint_1.pos",

                "joint_2.pos",

                "joint_3.pos",

                "joint_4.pos",

                "joint_5.pos",

                "joint_6.pos",

                "gripper.pos"

            ]

        },

        "observation.state": {

            "dtype": "float32",

            "shape": [

                7

            ],

            "names": [

                "joint_1.pos",

                "joint_2.pos",

                "joint_3.pos",

                "joint_4.pos",

                "joint_5.pos",

                "joint_6.pos",

                "gripper.pos"

            ]

        },

        "observation.images.top": {

            "dtype": "video",

            "shape": [

                480,

                640,

                3

            ],

            "names": [

                "height",

                "width",

                "channels"

            ],

            "info": {

                "video.height": 480,

                "video.width": 640,

                "video.codec": "av1",

                "video.pix_fmt": "yuv420p",

                "video.is_depth_map": false,

                "video.fps": 30,

                "video.channels": 3,

                "has_audio": false

            }

        },

        "observation.images.wrist": {

            "dtype": "video",

            "shape": [

                480,

                640,

                3

            ],

            "names": [

                "height",

                "width",

                "channels"

            ],

            "info": {

                "video.height": 480,

                "video.width": 640,

                "video.codec": "av1",

                "video.pix_fmt": "yuv420p",

                "video.is_depth_map": false,

                "video.fps": 30,

                "video.channels": 3,

                "has_audio": false

            }

        },

        "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

        }

    }

}

```