File size: 11,219 Bytes
d277b5f
 
 
 
 
 
 
 
 
 
 
 
 
 
a1373f9
 
 
639e07e
a1373f9
16fdb65
eba8dd3
a1373f9
639e07e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d277b5f
 
 
639e07e
 
 
 
 
 
 
 
 
 
 
 
a1373f9
639e07e
 
 
d277b5f
 
639e07e
 
 
 
 
 
 
 
 
 
 
d277b5f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639e07e
 
 
 
d277b5f
 
639e07e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1373f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639e07e
 
 
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
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
---
license: apache-2.0
task_categories:
- robotics
tags:
- LeRobot
- LIBERO
- RoboCasa
configs:
- config_name: default
  data_files: data/*/*.parquet
size_categories:
- 100M<n<1B
---

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

# 1 Dataset Description

This dataset includes 117 Lightwheel-Libero-Tasks and 89 Lightwheel-Robocasa-Tasks, collected using the x7s robot in environments provided by LW-BenchHub.  
The robot configuration used during data collection is **`X7s-Abs`**, using `X7SAbsEnvCfg` inherits from `X7SEnvCfg`.

---

## 1.1 Robot State

The robot state recorded in the environment is stored in: **observation.state**
- **Dimension**: 25  
- **Description**: Joint positions of the robot  
- **Joint mapping**: The exact joint ordering and semantics can be found in the **Dataset Structure** section below.

---

## 1.2 Robot Action

The robot actions are recorded in: **action**
- **Dimension**: 21  
The action is ordered as: base (3), body (2), left arm (7), right arm (7), left gripper (1), right gripper (1).
| Component       | Dimension | Description                         |
|:----------------|:---------:|:------------------------------------|
| Base action     | 3         | Planar base motion                  |
| Body action     | 2         | Vertical and pitch motion           |
| Arm action      | 14        | 7-DOF left arm + 7-DOF right arm    |
| Gripper action  | 2         | Binary gripper control              |


## 1.2.1 Base Action

The base action is implemented using `RelativeJointPositionActionCfg`.

- **Controlled joints**:
  - `base_x_joint` (index 0)
  - `base_y_joint` (index 1)
  - `base_yaw_link` (index 2)
- **Scale**: `0.01`

```python
self.action_config.base_action = mdp.RelativeJointPositionActionCfg(
    asset_name="robot",
    joint_names=["base.*"],
    scale=0.01,
    use_zero_offset=True,
)
```

## 1.2.2 Body Action

The body action controls the torso motion and is implemented using `RelativeJointPositionActionCfg`.

- **Controlled joints**:
  - `body_z_joint` (index 3)
  - `body_y_joint` (index 4)
- **Scale**: `0.025`

```python
self.action_config.body_action = mdp.RelativeJointPositionActionCfg(
    asset_name="robot",
    joint_names=["body.*"],
    scale=0.025,
    use_zero_offset=True,
)
```

## 1.2.3 Arm Action

The arm actions are implemented using `JointPositionActionCfg`.

- **Controlled joints**:
  - `left_shoulder_y` (index 5), `right_shoulder_y` (index 12)
  - `left_shoulder_x` (index 6), `right_shoulder_x` (index 13)
  - `left_shoulder_z` (index 7), `right_shoulder_z` (index 14)
  - `left_elbow_y` (index 8), `right_elbow_y` (index 15)
  - `left_elbow_x` (index 9), `right_elbow_x` (index 16)
  - `left_wrist_y` (index 10), `right_wrist_y` (index 17)
  - `left_wrist_z` (index 11), `right_wrist_z` (index 18)

```python
self.action_config.left_arm_action = mdp.JointPositionActionCfg(
                asset_name="robot", joint_names=["left_shoulder_y", "left_shoulder_x", "left_shoulder_z",
                                                 "left_elbow_y", "left_elbow_x",
                                                 "left_wrist_y", "left_wrist_z"],
                scale=1.0, use_default_offset=True
            )

self.action_config.right_arm_action = mdp.JointPositionActionCfg(
    asset_name="robot", joint_names=["right_shoulder_y", "right_shoulder_x", "right_shoulder_z",
                                     "right_elbow_y", "right_elbow_x",
                                     "right_wrist_y", "right_wrist_z"],
    scale=1.0, use_default_offset=True
)
```

## 1.2.4 Gripper Action

Grippers are controlled using `BinaryJointPositionActionCfg`. In the action data, `-1` indicates closing the gripper, `+1` indicates opening the gripper.  
The action commands for opening and closing the left and right grippers are defined as follows:

- **Left gripper** (index 19)
- **Right gripper** (index 20)
- **Action cmd**:
  - `-1`: close gripper
  - `+1`: open gripper
- Each gripper is actuated by two joints together, and the open/close commands are mapped explicitly to joint positions.

```python
# left gripper
self.action_config.left_gripper_action = mdp.BinaryJointPositionActionCfg(
    asset_name="robot",
    joint_names=["left_gripper.*"],
    open_command_expr={
        "left_gripper1": 0.044,
        "left_gripper2": 0.044,
    },
    close_command_expr={
        "left_gripper1": 0.0,
        "left_gripper2": 0.0,
    },
)
```

```python
# right gripper
self.action_config.right_gripper_action = mdp.BinaryJointPositionActionCfg(
    asset_name="robot",
    joint_names=["right_gripper.*"],
    open_command_expr={
        "right_gripper1": 0.0,
        "right_gripper2": 0.0,
    },
    close_command_expr={
        "right_gripper1": -0.04,
        "right_gripper2": -0.04,
    },
)
```

---

## Dataset Structure

[meta/info.json](meta/info.json):
```json
{
    "codebase_version": "v3.0",
    "robot_type": "x7s",
    "total_episodes": 10300,
    "total_frames": 10336395,
    "total_tasks": 206,
    "chunks_size": 1000,
    "fps": 50,
    "splits": {
        "train": "0:10300"
    },
    "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": {
        "observation.images.left_hand": {
            "dtype": "video",
            "shape": [
                480,
                640,
                3
            ],
            "names": [
                "height",
                "width",
                "channel"
            ],
            "video_info": {
                "video.width": 640,
                "video.height": 480,
                "video.fps": 50.0,
                "video.codec": "h264",
                "video.pix_fmt": "yuv420p",
                "video.channels": 3,
                "video.is_depth_map": false,
                "has_audio": false
            }
        },
        "observation.images.first_person": {
            "dtype": "video",
            "shape": [
                480,
                640,
                3
            ],
            "names": [
                "height",
                "width",
                "channel"
            ],
            "video_info": {
                "video.width": 640,
                "video.height": 480,
                "video.fps": 50.0,
                "video.codec": "h264",
                "video.pix_fmt": "yuv420p",
                "video.channels": 3,
                "video.is_depth_map": false,
                "has_audio": false
            }
        },
        "observation.images.right_hand": {
            "dtype": "video",
            "shape": [
                480,
                640,
                3
            ],
            "names": [
                "height",
                "width",
                "channel"
            ],
            "video_info": {
                "video.width": 640,
                "video.height": 480,
                "video.fps": 50.0,
                "video.codec": "h264",
                "video.pix_fmt": "yuv420p",
                "video.channels": 3,
                "video.is_depth_map": false,
                "has_audio": false
            }
        },
        "observation.state": {
            "dtype": "float32",
            "shape": [
                25
            ],
            "names": [
                "base_x_joint",
                "base_y_joint",
                "base_yaw_link",
                "body_z_joint",
                "body_y_joint",
                "right_shoulder_y",
                "head_z_joint",
                "left_shoulder_y",
                "right_shoulder_x",
                "head_y_joint",
                "left_shoulder_x",
                "right_shoulder_z",
                "left_shoulder_z",
                "right_elbow_y",
                "left_elbow_y",
                "right_elbow_x",
                "left_elbow_x",
                "right_wrist_y",
                "left_wrist_y",
                "right_wrist_z",
                "left_wrist_z",
                "right_gripper1",
                "right_gripper2",
                "left_gripper1",
                "left_gripper2"
            ],
            "fps": 50
        },
        "action": {
            "dtype": "float32",
            "shape": [
                21
            ],
            "names": [
                "base_x_joint",
                "base_y_joint",
                "base_yaw_link",
                "body_z_joint",
                "body_y_joint",
                "left_shoulder_y",
                "left_shoulder_x",
                "left_shoulder_z",
                "left_elbow_y",
                "left_elbow_x",
                "left_wrist_y",
                "left_wrist_z",
                "right_shoulder_y",
                "right_shoulder_x",
                "right_shoulder_z",
                "right_elbow_y",
                "right_elbow_x",
                "right_wrist_y",
                "right_wrist_z",
                "left_gripper",
                "right_gripper"
            ],
            "fps": 50
        },
        "processed_action": {
            "dtype": "float32",
            "shape": [
                23
            ],
            "names": [
                "base_x_joint",
                "base_y_joint",
                "base_yaw_link",
                "body_z_joint",
                "body_y_joint",
                "left_shoulder_y",
                "left_shoulder_x",
                "left_shoulder_z",
                "left_elbow_y",
                "left_elbow_x",
                "left_wrist_y",
                "left_wrist_z",
                "right_shoulder_y",
                "right_shoulder_x",
                "right_shoulder_z",
                "right_elbow_y",
                "right_elbow_x",
                "right_wrist_y",
                "right_wrist_z",
                "left_gripper1",
                "left_gripper2",
                "right_gripper1",
                "right_gripper2"
            ],
            "fps": 50
        },
        "timestamp": {
            "dtype": "float32",
            "shape": [
                1
            ],
            "names": null,
            "fps": 50
        },
        "episode_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null,
            "fps": 50
        },
        "task_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null,
            "fps": 50
        },
        "index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null,
            "fps": 50
        },
        "frame_index": {
            "dtype": "int64",
            "shape": [
                1
            ],
            "names": null,
            "fps": 50
        }
    },
    "data_files_size_in_mb": 100,
    "video_files_size_in_mb": 500
}
```
## Homepage: [[Lightwheel-BenchHub](https://docs.lightwheel.net/lw_benchhub/)]
## License: [[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)]