JJanGGoo commited on
Commit
998f29c
·
verified ·
1 Parent(s): dba5431

Rewrite MA-Bench dataset card in English aligned with MAWAM model card

Browse files
Files changed (1) hide show
  1. README.md +172 -57
README.md CHANGED
@@ -1,20 +1,104 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
- # MAWAM 双机器人仿真示范
6
 
7
- 本数据集包含七个协作操作任务,每项 100 对,共 700 对示范、852,514 个联合控制时刻。一条 episode 记录两台机器人在同一场景中完成一次任务的过程。
8
 
9
- ## 数据目录
 
 
 
 
 
 
10
 
11
- 所有任务使用相同布局。每个任务目录放一份 `instructions.json`,以及从 `episode0` 到 `episode99` 的 100 个目录。编号采用十进制、不补零。一个 episode 里的两个角色目录均含一份 `trajectory.h5` 和一个 `videos/` 目录。每路真实角色相机对应一个按视角命名的 MP4。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  ```text
14
- MAWAM-Data/
15
  ├── README.md
16
  └── tasks/
17
  ├── joint_bowl_placing/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ├── find_common_color/
19
  ├── hold_and_scan/
20
  ├── open_door_place_pot/
@@ -23,77 +107,108 @@ MAWAM-Data/
23
  └── pour_and_catch/
24
  ```
25
 
26
- 以联合放碗的一条示范为例:
27
 
28
- ```text
29
- tasks/joint_bowl_placing/
30
- ├── instructions.json
31
- └── episode80/
32
- ├── agent_a/
33
- │ ├── trajectory.h5
34
- │ └── videos/
35
- │ ├── head.mp4
36
- │ ├── left_wrist.mp4
37
- │ └── right_wrist.mp4
38
- └── agent_b/
39
- ├── trajectory.h5
40
- └── videos/
41
- ├── head.mp4
42
- ├── left_wrist.mp4
43
- └── right_wrist.mp4
44
- ```
45
 
46
- ## 任务与角色
 
 
 
47
 
48
- | 任务 | 目录 | agent_a | agent_b | 联合控制时刻 |
49
- | --- | --- | --- | --- | ---: |
50
- | 联合放碗 | `joint_bowl_placing` | ALOHA,开始传递 | ALOHA,接碗并放至目标区 | 228,916 |
51
- | 找共同色 | `find_common_color` | ALOHA,操作 A 侧方块 | ALOHA,操作 B 侧方块 | 33,570 |
52
- | 持物扫码 | `hold_and_scan` | ALOHA,持物 | ALOHA,扫码 | 141,328 |
53
- | 开门放锅 | `open_door_place_pot` | Panda,开门并扶门 | ALOHA,双臂放锅 | 156,532 |
54
- | 抬盘保物 | `lift_tray_keep_objects` | ALOHA,抬盘 A 侧 | ALOHA,抬盘 B 侧 | 100,568 |
55
- | 抬盘倒菜 | `lift_tray_pour_food` | ALOHA,协作抬盘和倾倒 | ALOHA,协作抬盘和倾倒 | 97,100 |
56
- | 倒球接球 | `pour_and_catch` | Panda,倾倒小球 | UR5,移动接料盒 | 94,500 |
57
 
58
- 找共同色的 100 对示范均选自五色训练集,目标红、橙、黄、蓝、紫各 20 对。抬盘保物使用单球训练场景。
 
59
 
60
- ## 指令、视频和轨迹
61
 
62
- 每份 `instructions.json` 都有四个字段。`task` 是任务目录名,`instruction` 是双方的共同目标,`agent_a` 和 `agent_b` 是对应角色的指令。该文件适用于本任务的 100 条示范。
 
 
 
 
 
63
 
64
- `videos/` 保存机器人自身视角。双臂 ALOHA 有 `head.mp4`、`left_wrist.mp4` 和 `right_wrist.mp4`。单臂 Panda 和 UR5 有 `head.mp4` 和 `wrist.mp4`。开门任务的全景与辅助动作录像留在原始归档。
65
 
66
- 所有 `trajectory.h5` 都用以下字段读取控制动作并与视频对齐。
67
 
68
- | HDF5 字段 | 含义 |
69
- | --- | --- |
70
- | `/action` | 形状为 `(N, D)` 的本角色原始动作。两角色在同一 episode 中共享 N 个控制时刻。D 由机器人决定,ALOHA 为 14,Panda 为 8,倒球接球的 UR5 为 7。 |
71
- | `/tick` | 长度为 N 的控制时刻序号,从 0 开始。 |
72
- | `/video_tick/<视角名>` | 每个视频帧对应的控制时刻序号。视角名和 MP4 文件名主干相同,例如 `head`。 |
73
- | 文件属性 `scene_seed`、`control_hz` | 原场景 seed 和动作频率。 |
74
 
75
- 联合放碗以 25 Hz 记录动作和视频。开门放锅以 25 Hz 记录动作、6.25 Hz 采样视频。读取时用 `video_tick` 取同一时刻的动作。
76
 
77
- ## 读取示例
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
- 安装 `h5py` 和 `opencv-python`,在数据集根目录运行。将第一行任务和 episode 路径替换成其他示范,即可按相同步骤读取双方的头部相机和同步动作。
 
 
 
 
80
 
81
  ```python
82
  from pathlib import Path
83
-
84
  import cv2
85
  import h5py
86
 
87
- episode = Path("tasks/joint_bowl_placing/episode80")
 
88
  for role in ("agent_a", "agent_b"):
89
  folder = episode / role
90
- with h5py.File(folder / "trajectory.h5", "r") as trajectory:
91
- tick = int(trajectory["video_tick/head"][0])
92
- action = trajectory["action"][tick]
93
- video = cv2.VideoCapture(str(folder / "videos" / "head.mp4"))
94
- ok, image = video.read()
95
- video.release()
96
  if not ok:
97
- raise RuntimeError(f"Could not decode the first head-camera frame for {role}")
98
- print(role, tick, action.shape, image.shape)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  ```
 
1
  ---
2
  license: mit
3
+ task_categories:
4
+ - robotics
5
+ language:
6
+ - zh
7
+ - en
8
+ size_categories:
9
+ - n<1K
10
+ tags:
11
+ - robotics
12
+ - embodied-ai
13
+ - multi-agent
14
+ - manipulation
15
+ - benchmark
16
+ - simulation
17
+ - world-model
18
+ - world-action-model
19
+ - mawam
20
  ---
21
 
22
+ <div align="center">
23
 
24
+ # MA-Bench: Multi-Agent Collaborative Robot Manipulation Benchmark Dataset
25
 
26
+ <p>
27
+ <a href="https://embodiedcity.github.io/MAWAM/"><img src="https://img.shields.io/badge/Project-Page-2ea44f?style=flat-square" alt="Project Page"></a>
28
+ <a href="https://arxiv.org/abs/2611.29501"><img src="https://img.shields.io/badge/arXiv-2611.29501-b31b1b?style=flat-square" alt="arXiv"></a>
29
+ <a href="https://arxiv.org/pdf/2611.29501"><img src="https://img.shields.io/badge/Paper-PDF-d93025?style=flat-square" alt="Paper PDF"></a>
30
+ <a href="https://huggingface.co/EmbodiedCity/MAWAM"><img src="https://img.shields.io/badge/Checkpoints-MAWAM-ffd21e?style=flat-square&logo=huggingface" alt="MAWAM Checkpoints"></a>
31
+ <a href="https://github.com/EmbodiedCity/MAWAM"><img src="https://img.shields.io/badge/GitHub-Repo-181717?style=flat-square&logo=github" alt="GitHub"></a>
32
+ </p>
33
 
34
+ **Rongze Tang**<sup>1,3</sup>, **Chenyu Zhou**<sup>2,3</sup>, **Jianjie Fang**<sup>4</sup>, **Ziming Liu**<sup>4</sup>, **Zhaolu Wang**<sup>3</sup>, **Ziyou Wang**<sup>4</sup>,
35
+ **Xvyuan Liu**<sup>4</sup>, **Wei Wu**<sup>5</sup>, **Chen Gao**<sup>3,4,&dagger;</sup>, **Yong Li**<sup>4</sup>, **Zhibo Chen**<sup>1,3,&dagger;</sup>
36
+
37
+ <sup>1</sup>University of Science and Technology of China &nbsp;&middot;&nbsp; <sup>2</sup>Nanjing University &nbsp;&middot;&nbsp; <sup>3</sup>Zhongguancun Academy
38
+ <sup>4</sup>Tsinghua University &nbsp;&middot;&nbsp; <sup>5</sup>Manifold AI
39
+ <sup>&dagger;</sup>Corresponding authors: `chgao96@gmail.com`, `chenzhibo@ustc.edu.cn`
40
+
41
+ <br>
42
+ <img src="https://embodiedcity.github.io/MAWAM/static/images/harness.png" alt="MA-Task Harness and MA-Bench Overview" width="96%">
43
+
44
+ </div>
45
+
46
+ ---
47
+
48
+ ## Overview
49
+
50
+ **MA-Bench** is the dual-robot collaborative manipulation benchmark introduced in [**MAWAM: Joint Imagination for Collaborative Robot Manipulation with a Multi-Agent World Action Model**](https://arxiv.org/abs/2611.29501).
51
+
52
+ Designed along three formal axes of *multi-agent-necessary* manipulation — **Complementarity (*Why*)**, **Temporal Coupling (*When*)**, and **Embodiment (*Who*)** — and constructed via **MA-Task Harness**, this dataset provides **700 synchronized multi-robot expert demonstration pairs** (100 episodes per task across 7 tasks, totaling **852,514 synchronized joint control steps**).
53
+
54
+ - **Multi-Agent-Necessary Coverage**: Spans spatial handoffs, cross-table partial observability (information asymmetry), partially synchronous hold-and-act, and synchronous $SE(3)$ / dynamic co-manipulation.
55
+ - **Homogeneous & Heterogeneous Teams**: Covers dual ALOHA teams (`ALOHA + ALOHA`) as well as heterogeneous pairings (`Panda + ALOHA` and `Panda + UR5`), preserving native per-robot observations and action dimensions.
56
+ - **Synchronized Multi-View Video & Actions**: Every episode aligns both robots' egocentric RGB camera streams (`head`, `wrist` / `left_wrist`, `right_wrist`) with joint control ticks and hierarchical global + role-specific language instructions.
57
+
58
+ ---
59
+
60
+ ## Tasks & Roles
61
+
62
+ | Task | Directory | Why (Complementarity) | When (Timing) | `agent_a` Role | `agent_b` Role | Episodes | Joint Control Steps |
63
+ | --- | --- | --- | --- | --- | --- | ---: | ---: |
64
+ | **Joint bowl placing** | [`tasks/joint_bowl_placing`](tasks/joint_bowl_placing) | Spatial | Asynchronous | ALOHA: pick bowl & place into handoff zone | ALOHA: receive bowl & place at goal | 100 | 228,916 |
65
+ | **Find common color** | [`tasks/find_common_color`](tasks/find_common_color) | Information | Asynchronous | ALOHA: pick shared-color block (side A) | ALOHA: pick shared-color block (side B) | 100 | 33,570 |
66
+ | **Hold and scan** | [`tasks/hold_and_scan`](tasks/hold_and_scan) | Spatial | Partially sync. | ALOHA: pick & hold target box | ALOHA: align & hold scanner on box | 100 | 141,328 |
67
+ | **Open door, place pot** | [`tasks/open_door_place_pot`](tasks/open_door_place_pot) | Capability | Partially sync. | Panda: open & hold spring-loaded door | ALOHA: dual-arm lift & place pot inside | 100 | 156,532 |
68
+ | **Lift tray, keep blocks** | [`tasks/lift_tray_keep_objects`](tasks/lift_tray_keep_objects) | Capability | Synchronous | ALOHA: co-lift tray (side A) | ALOHA: co-lift tray (side B) | 100 | 100,568 |
69
+ | **Lift tray, pour food** | [`tasks/lift_tray_pour_food`](tasks/lift_tray_pour_food) | Capability | Synchronous | ALOHA: co-lift & tilt tray to pour | ALOHA: co-lift & tilt tray to pour | 100 | 97,100 |
70
+ | **Pour and catch** | [`tasks/pour_and_catch`](tasks/pour_and_catch) | Capability | Synchronous | Panda: tilt hopper to pour spheres | UR5: track stream with catching cup | 100 | 94,500 |
71
+ | **Total** | — | — | — | — | — | **700** | **852,514** |
72
+
73
+ > **Dataset Notes**:
74
+ > - `find_common_color` provides 100 balanced episodes across five target color categories (red, orange, yellow, blue, purple; 20 pairs each).
75
+ > - `lift_tray_keep_objects` demonstrations use the single-ball training scene setup (evaluated on stacked blocks in MA-Bench).
76
+
77
+ ---
78
+
79
+ ## Repository Structure
80
+
81
+ All seven tasks follow an identical layout: each task directory contains one `instructions.json` and 100 episode folders numbered `episode0` through `episode99` (unpadded decimal). Each episode contains `agent_a/` and `agent_b/`, each holding `trajectory.h5` and per-camera MP4 videos under `videos/`.
82
 
83
  ```text
84
+ EmbodiedCity/MA-Bench/
85
  ├── README.md
86
  └── tasks/
87
  ├── joint_bowl_placing/
88
+ │ ├── instructions.json
89
+ │ └── episode0/ ... episode99/
90
+ │ ├── agent_a/
91
+ │ │ ├── trajectory.h5
92
+ │ │ └── videos/
93
+ │ │ ├── head.mp4
94
+ │ │ ├── left_wrist.mp4
95
+ │ │ └── right_wrist.mp4
96
+ │ └── agent_b/
97
+ │ ├── trajectory.h5
98
+ │ └── videos/
99
+ │ ├── head.mp4
100
+ │ ├── left_wrist.mp4
101
+ │ └── right_wrist.mp4
102
  ├── find_common_color/
103
  ├── hold_and_scan/
104
  ├── open_door_place_pot/
 
107
  └── pour_and_catch/
108
  ```
109
 
110
+ ---
111
 
112
+ ## Data Format
113
+
114
+ ### Instructions (`instructions.json`)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
+ Each task's `instructions.json` contains four fields shared across all 100 episodes of that task:
117
+ - `task`: canonical task directory name.
118
+ - `instruction`: team-level global task instruction ($g$).
119
+ - `agent_a` / `agent_b`: role-specific local instructions ($\ell^A, \ell^B$).
120
 
121
+ ### Egocentric Camera Videos (`videos/`)
 
 
 
 
 
 
 
 
122
 
123
+ - **Dual-arm ALOHA**: `head.mp4`, `left_wrist.mp4`, `right_wrist.mp4` (3 views).
124
+ - **Single-arm Panda / UR5**: `head.mp4`, `wrist.mp4` (2 native views).
125
 
126
+ ### Trajectory Schema (`trajectory.h5`)
127
 
128
+ | HDF5 Path / Attribute | Description |
129
+ | --- | --- |
130
+ | `/action` | Shape `(N, D)` native per-agent control actions synchronized across both roles for all `N` ticks (`D = 14` for ALOHA, `D = 8` for Panda, `D = 7` for UR5 in `pour_and_catch`). |
131
+ | `/tick` | Length-`N` integer control tick index starting at `0`. |
132
+ | `/video_tick/<view>` | Control tick index corresponding to each frame of `videos/<view>.mp4` (e.g., `video_tick/head`). |
133
+ | Attr `scene_seed`, `control_hz` | Simulation scene seed and control frequency (25 Hz). |
134
 
135
+ > **Synchronization Tip**: Control actions are recorded at 25 Hz across all tasks, while video capture rates vary by task (e.g., 25 Hz for `joint_bowl_placing`, 6.25 Hz for `open_door_place_pot`). Always index `/action` via `/video_tick/<view>` to align video frames with exact control steps.
136
 
137
+ ---
138
 
139
+ ## Download & Quickstart
 
 
 
 
 
140
 
141
+ ### Download a single task or the full benchmark
142
 
143
+ ```bash
144
+ pip install -U huggingface_hub
145
+
146
+ # Example: download Open door, place pot only
147
+ hf download EmbodiedCity/MA-Bench \
148
+ --repo-type dataset \
149
+ --include "tasks/open_door_place_pot/*" \
150
+ --local-dir ./ma_bench
151
+
152
+ # Or download all 7 tasks
153
+ hf download EmbodiedCity/MA-Bench \
154
+ --repo-type dataset \
155
+ --local-dir ./ma_bench
156
+ ```
157
 
158
+ ### Read synchronized videos and actions in Python
159
+
160
+ ```bash
161
+ pip install h5py opencv-python
162
+ ```
163
 
164
  ```python
165
  from pathlib import Path
 
166
  import cv2
167
  import h5py
168
 
169
+ episode = Path("ma_bench/tasks/joint_bowl_placing/episode80")
170
+
171
  for role in ("agent_a", "agent_b"):
172
  folder = episode / role
173
+ with h5py.File(folder / "trajectory.h5", "r") as traj:
174
+ tick = int(traj["video_tick/head"][0])
175
+ action = traj["action"][tick]
176
+ cap = cv2.VideoCapture(str(folder / "videos" / "head.mp4"))
177
+ ok, frame = cap.read()
178
+ cap.release()
179
  if not ok:
180
+ raise RuntimeError(f"Failed to decode first head frame for {role}")
181
+ print(role, f"tick={tick}", f"action={action.shape}", f"frame={frame.shape}")
182
+ ```
183
+
184
+ ---
185
+
186
+ ## Related Resources
187
+
188
+ - **Model Checkpoints (MAWAM)**: [EmbodiedCity/MAWAM](https://huggingface.co/EmbodiedCity/MAWAM)
189
+ - **Project Page & Demos**: [embodiedcity.github.io/MAWAM](https://embodiedcity.github.io/MAWAM/)
190
+ - **Paper**: [arXiv:2611.29501](https://arxiv.org/abs/2611.29501) ([PDF](https://arxiv.org/pdf/2611.29501))
191
+ - **GitHub Repository**: [github.com/EmbodiedCity/MAWAM](https://github.com/EmbodiedCity/MAWAM)
192
+
193
+ ---
194
+
195
+ ## License & Acknowledgements
196
+
197
+ - This dataset is released under the **MIT** license.
198
+ - Built on simulation infrastructure adapted from [RoboTwin](https://github.com/TianxingChen/RoboTwin), [SAPIEN](https://sapien.ucsd.edu/), and [ALOHA](https://tonyzhaozh.github.io/aloha/).
199
+
200
+ ---
201
+
202
+ ## Citation
203
+
204
+ ```bibtex
205
+ @article{tang2026mawam,
206
+ title = {MAWAM: Joint Imagination for Collaborative Robot Manipulation
207
+ with a Multi-Agent World Action Model},
208
+ author = {Rongze Tang and Chenyu Zhou and Jianjie Fang and Ziming Liu and
209
+ Zhaolu Wang and Ziyou Wang and Xvyuan Liu and Wei Wu and
210
+ Chen Gao and Yong Li and Zhibo Chen},
211
+ journal = {arXiv preprint arXiv:2611.29501},
212
+ year = {2026}
213
+ }
214
  ```