uooon commited on
Commit
78a3b51
·
verified ·
1 Parent(s): 72ec0bd

Initial release of LIBERO-GeoMotion

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. .gitignore +9 -0
  3. LICENSE +21 -0
  4. MANIFEST.in +3 -0
  5. README.md +232 -1
  6. README.zh-CN.md +220 -0
  7. THIRD_PARTY_NOTICES/LIBERO_LICENSE +21 -0
  8. THIRD_PARTY_NOTICES/NOTICE +12 -0
  9. THIRD_PARTY_NOTICES/additional_asset_provenance.json +57 -0
  10. THIRD_PARTY_NOTICES/asset_provenance.json +62 -0
  11. constraints-tested.txt +99 -0
  12. geomotion/__init__.py +59 -0
  13. geomotion/cli.py +137 -0
  14. geomotion/export_references.py +114 -0
  15. geomotion/resources/evaluation_protocol.json +87 -0
  16. geomotion/resources/expert_reference/actions/rp3_028_cream_cheese_drawer_v0_actions.npy +3 -0
  17. geomotion/resources/expert_reference/actions/rp3_034_two_mugs_v0_actions.npy +3 -0
  18. geomotion/resources/expert_reference/actions/rp_008_bar_gate_v0_actions.npy +3 -0
  19. geomotion/resources/expert_reference/actions/rp_012_book_slot_v0_actions.npy +3 -0
  20. geomotion/resources/expert_reference/actions/rp_016_bottle_shelf_v0_actions.npy +3 -0
  21. geomotion/resources/expert_reference/actions/rp_050_mango_safety_yaw90_layout0_actions.npy +3 -0
  22. geomotion/resources/expert_reference/dataset/rp3_028_cream_cheese_drawer_v0_demo.hdf5 +3 -0
  23. geomotion/resources/expert_reference/dataset/rp3_034_two_mugs_v0_demo.hdf5 +3 -0
  24. geomotion/resources/expert_reference/dataset/rp_008_bar_gate_v0_demo.hdf5 +3 -0
  25. geomotion/resources/expert_reference/dataset/rp_012_book_slot_v0_demo.hdf5 +3 -0
  26. geomotion/resources/expert_reference/dataset/rp_016_bottle_shelf_v0_demo.hdf5 +3 -0
  27. geomotion/resources/expert_reference/dataset/rp_050_mango_safety_yaw90_layout0_demo.hdf5 +3 -0
  28. geomotion/resources/expert_reference/reference_manifest.json +154 -0
  29. geomotion/resources/expert_reference/replay_experts.py +5 -0
  30. geomotion/resources/expert_reference/text/rp3_028_cream_cheese_drawer_v0.md +77 -0
  31. geomotion/resources/expert_reference/text/rp3_034_two_mugs_v0.md +73 -0
  32. geomotion/resources/expert_reference/text/rp_008_bar_gate_v0.md +47 -0
  33. geomotion/resources/expert_reference/text/rp_012_book_slot_v0.md +38 -0
  34. geomotion/resources/expert_reference/text/rp_016_bottle_shelf_v0.md +42 -0
  35. geomotion/resources/expert_reference/text/rp_050_mango_safety_yaw90_layout0.md +38 -0
  36. geomotion/resources/expert_reference/trajectory/rp3_028_cream_cheese_drawer_v0_eef.csv +0 -0
  37. geomotion/resources/expert_reference/trajectory/rp3_034_two_mugs_v0_eef.csv +0 -0
  38. geomotion/resources/expert_reference/trajectory/rp_008_bar_gate_v0_eef.csv +0 -0
  39. geomotion/resources/expert_reference/trajectory/rp_012_book_slot_v0_eef.csv +0 -0
  40. geomotion/resources/expert_reference/trajectory/rp_016_bottle_shelf_v0_eef.csv +0 -0
  41. geomotion/resources/expert_reference/trajectory/rp_050_mango_safety_yaw90_layout0_eef.csv +0 -0
  42. geomotion/resources/expert_reference/video/rp3_028_cream_cheese_drawer_v0_replay.mp4 +3 -0
  43. geomotion/resources/expert_reference/video/rp3_034_two_mugs_v0_replay.mp4 +3 -0
  44. geomotion/resources/expert_reference/video/rp_008_bar_gate_v0_replay.mp4 +3 -0
  45. geomotion/resources/expert_reference/video/rp_012_book_slot_v0_replay.mp4 +3 -0
  46. geomotion/resources/expert_reference/video/rp_016_bottle_shelf_v0_replay.mp4 +3 -0
  47. geomotion/resources/expert_reference/video/rp_050_mango_safety_yaw90_layout0_replay.mp4 +3 -0
  48. geomotion/resources/task_families.json +110 -0
  49. geomotion/runtime.py +59 -0
  50. libero/__init__.py +1 -0
.gitattributes CHANGED
@@ -58,3 +58,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ *.hdf5 filter=lfs diff=lfs merge=lfs -text
62
+ *.msh filter=lfs diff=lfs merge=lfs -text
63
+ *.obj filter=lfs diff=lfs merge=lfs -text
64
+ *.pruned_init filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .venv/
5
+ .cache/
6
+ .pytest_cache/
7
+ build/
8
+ dist/
9
+ validation/
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GEoMotion contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
MANIFEST.in ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ include README.zh-CN.md constraints-tested.txt
2
+ recursive-include tools *.py
3
+ recursive-include tests *.py
README.md CHANGED
@@ -1,3 +1,234 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ - zh
5
+ license: other
6
+ license_name: mit-and-upstream-terms
7
+ license_link: https://huggingface.co/datasets/uooon/LIBERO-GeoMotion/blob/main/THIRD_PARTY_NOTICES/NOTICE
8
+ tags:
9
+ - robotics
10
+ - simulation
11
+ - manipulation
12
+ pretty_name: LIBERO-GeoMotion
13
  ---
14
+
15
+ <h1 align="center">LIBERO-GeoMotion</h1>
16
+
17
+ <p align="center"><strong>English</strong> | <a href="README.zh-CN.md">简体中文</a></p>
18
+
19
+ <p align="center">
20
+ <strong>A simulation benchmark for geometry-constrained robot manipulation</strong><br>
21
+ 36 fixed scenes · 9 task families · 6 expert demonstrations
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="#installation">Installation</a> ·
26
+ <a href="#verify-your-installation">Verify your installation</a> ·
27
+ <a href="#python-api">Python API</a> ·
28
+ <a href="#evaluation">Evaluation</a> ·
29
+ <a href="#troubleshooting">Troubleshooting</a>
30
+ </p>
31
+
32
+ Welcome to **LIBERO-GeoMotion**! This repository provides a standalone LIBERO-based environment for evaluating robot manipulation under geometric constraints: moving through narrow passages, placing objects with a required orientation, avoiding obstacles, and closing drawers or cabinet doors after storage.
33
+
34
+ The distribution includes the simulation runtime, scene definitions, required base assets, fixed initial states, and six expert demonstrations. **You can install and run it directly, without a separate LIBERO-plus checkout or asset download.** MuJoCo, robosuite, and other Python dependencies are installed by pip.
35
+
36
+ Start with one scene to check your installation, then run the full scene checks or connect your own policy through the Python API.
37
+
38
+ <a id="installation"></a>
39
+
40
+ ## 🔧 Installation
41
+
42
+ ### 1. Prepare the system
43
+
44
+ | Component | Requirement |
45
+ |---|---|
46
+ | Operating system | Linux; the system package commands below target Ubuntu / Debian |
47
+ | Python | **3.12**; the package requires `>=3.12,<3.13` |
48
+ | Python environment | A dedicated virtual environment to keep simulator dependencies separate |
49
+ | Default rendering | OSMesa for offscreen rendering without a display or GPU |
50
+ | Optional GPU rendering | EGL with a working GPU driver and EGL runtime |
51
+
52
+ Install the OSMesa and ImageMagick system libraries:
53
+
54
+ ```bash
55
+ sudo apt-get update
56
+ sudo apt-get install -y libosmesa6 libmagickwand-dev
57
+ ```
58
+
59
+ OSMesa provides the default rendering backend; ImageMagick is used by the bundled image-processing code through Wand. These system libraries are required in addition to the Python packages.
60
+
61
+ The following steps assume `python3.12` is available and supports `venv`. If your distribution packages virtual-environment support separately, install its matching `python3.12-venv` package first.
62
+
63
+ ### 2. Install the environment
64
+
65
+ Download or clone this repository, open a terminal in its root directory, and run:
66
+
67
+ ```bash
68
+ python3.12 -m venv .venv
69
+ source .venv/bin/activate
70
+ python -m pip install --upgrade pip
71
+ python -m pip install -e . -c constraints-tested.txt
72
+ geomotion --help
73
+ ```
74
+
75
+ [`constraints-tested.txt`](constraints-tested.txt) records the validated Linux dependency versions. Passing it with `-c` constrains the packages needed by this project; it does not install every package listed in the file. The editable install (`-e .`) uses the code and assets in this checkout, so keep the repository in place.
76
+
77
+ In each new terminal, run `source .venv/bin/activate` again from the repository root. This distribution provides the `libero` Python namespace; keep other LIBERO installations in separate environments.
78
+
79
+ <a id="verify-your-installation"></a>
80
+
81
+ ## ✅ Verify your installation
82
+
83
+ ### 1. Check installation
84
+
85
+ ```bash
86
+ geomotion doctor
87
+ ```
88
+
89
+ The command loads the task suite and reports dependency versions. A successful JSON result contains `"passed": true`, `"tasks": 36`, and reference IDs `[0, 4, 8, 26, 28, 34]`. It does not create a simulation scene or test rendering.
90
+
91
+ ### 2. Run your first scene
92
+
93
+ ```bash
94
+ geomotion smoke --ids 0
95
+ ```
96
+
97
+ This creates task 0, restores its fixed initial state, checks both 256 × 256 camera images, and executes one action. A successful result contains `"passed": true`, `"initial_state_error": 0.0`, and an `elapsed_seconds` value close to `0.05` (20 Hz control).
98
+
99
+ **No viewer window opens:** the check renders offscreen. `success_after_one_step` reports task completion after that single action; `false` is normal and does not mean the installation failed.
100
+
101
+ ### 3. Check all scenes and replay the experts
102
+
103
+ Once the first scene works, you can run the broader checks:
104
+
105
+ ```bash
106
+ geomotion smoke --ids all --output validation/smoke.json
107
+ geomotion replay-experts --ids all --output validation/experts.json
108
+ ```
109
+
110
+ The smoke command checks all 36 scenes. Expert replay checks the **six included demonstrations**, verifies their initial states, and executes their recorded actions through the simulator. Each successful replay reports `"success": true`. Replay takes longer than a single smoke check and runs without camera observations.
111
+
112
+ Use comma-separated IDs for a smaller selection, such as `geomotion smoke --ids 0,4,8`. For `replay-experts`, only IDs `0,4,8,26,28,34` are available. The optional `--output` writes a JSON report after a successful check.
113
+
114
+ ### Optional: use GPU rendering
115
+
116
+ The CLI defaults to OSMesa. If your machine has a working EGL setup, select it explicitly:
117
+
118
+ ```bash
119
+ geomotion smoke --ids 0 --renderer egl
120
+ ```
121
+
122
+ In Python, use `geomotion.make_env(0, renderer="egl")` before importing MuJoCo or other OpenGL-dependent modules. Switch renderers in a fresh process; in a notebook, restart the kernel first.
123
+
124
+ <a id="python-api"></a>
125
+
126
+ ## 🐍 Python API
127
+
128
+ This minimal example loads one scene, prints its instruction and image shapes, executes one stationary command with the gripper open, and closes the environment:
129
+
130
+ ```python
131
+ import geomotion
132
+
133
+ suite = geomotion.get_suite()
134
+ print("Tasks:", suite.n_tasks)
135
+ print("Instruction:", suite.get_task(0).language)
136
+
137
+ env, obs = geomotion.make_env(0)
138
+ try:
139
+ print("Agent view:", obs["agentview_image"].shape) # (256, 256, 3)
140
+ print("Wrist view:", obs["robot0_eye_in_hand_image"].shape) # (256, 256, 3)
141
+ action = [0, 0, 0, 0, 0, 0, -1]
142
+ obs, reward, done, info = env.step(action)
143
+ print("Task success:", bool(env.check_success()))
144
+ finally:
145
+ env.close()
146
+ ```
147
+
148
+ For policy evaluation, replace the example action with your policy output and repeat for at most **4,000 actions**, stopping as soon as `env.check_success()` is true. The example action only exercises the interface; it is not a task-solving policy.
149
+
150
+ Actions are seven native `OSC_POSE` control values in `[-1, 1]`: three translation components, three rotation components, and one gripper command (`-1` opens; `+1` closes). Use `geomotion.make_env(task_id)` for each new episode to restore the packaged initial state. Calling bare `env.reset()` does not restore that state.
151
+
152
+ By default, runtime configuration is written under `~/.cache/libero-geomotion/` (or `$XDG_CACHE_HOME/libero-geomotion/`), in a directory specific to the installation. You can set `config_dir` in `make_env()` to choose another directory. If `LIBERO_CONFIG_PATH` is already set, the runtime uses that directory unless `config_dir` is supplied.
153
+
154
+ <a id="evaluation"></a>
155
+
156
+ ## 📐 Tasks and evaluation
157
+
158
+ Task IDs are fixed from **0 to 35**. The published suite is `libero_rp`.
159
+
160
+ | Task family | Task IDs |
161
+ |---|---|
162
+ | Narrow-Passage Transport | 0–3 |
163
+ | Upright Book Placement | 4–7 |
164
+ | Oriented Bottle Placement | 8–11 |
165
+ | Plate Pushing Around Obstacles | 12–15 |
166
+ | Book Storage in a Drawer | 16–19 |
167
+ | Single-Mug Alignment and Closure | 20–23 |
168
+ | Mango Transport and Avoidance | 24–27 |
169
+ | Package Storage and Drawer Closure | 28–33 |
170
+ | Dual-Mug Alignment and Closure | 34–35 |
171
+
172
+ The default evaluation settings are:
173
+
174
+ | Setting | Value |
175
+ |---|---|
176
+ | Robot and controller | Panda, delta `OSC_POSE` |
177
+ | Initialization | Fixed initial state 0, seed 0, no warmup steps |
178
+ | Control frequency | 20 Hz |
179
+ | RGB observations | `agentview` and `robot0_eye_in_hand`, each 256 × 256 |
180
+ | Episode budget | 4,000 native actions |
181
+ | Termination | Stop on `env.check_success()` or the action budget; do not rely on `done` |
182
+
183
+ Success uses the official task predicates, including placement, orientation, release, stability, door/drawer state, and task-specific process or safety constraints. Simulator geometry, object poses, and predicate internals are evaluator-only information; policy inputs are the task instruction, camera images, robot proprioception, and explicitly selected references.
184
+
185
+ Report per-scene and per-family success, and distinguish the overall scene mean from the family macro-average because family sizes differ. See the [`evaluation_protocol.json`](geomotion/resources/evaluation_protocol.json), [`task_families.json`](geomotion/resources/task_families.json), and [task manifest](libero_rotation_planning/benchmark/task_manifest.json) for the complete settings and task descriptions.
186
+
187
+ ## 🎬 Expert demonstrations
188
+
189
+ The suite contains **9 task families: 6 have one reference demonstration each, and 3 have no reference demonstration**. The six demonstrations are bundled under [`geomotion/resources/expert_reference/`](geomotion/resources/expert_reference/), for scene IDs **0, 4, 8, 26, 28, and 34**. Each matches its own test scene's fixed initial state. The 3 families without reference demonstrations are **Plate Pushing Around Obstacles, Book Storage in a Drawer, and Single-Mug Alignment and Closure**. Make the reference selection explicit when reporting evaluation results.
190
+
191
+ To export the included HDF5 demonstrations into portable videos, text, and trajectories:
192
+
193
+ ```bash
194
+ geomotion export-references --ids all --output ./geomotion-references-256
195
+ ```
196
+
197
+ Each `task_NNN/` directory contains lossless `agentview.mp4` and `wrist.mp4`, each 256 × 256, `videos.json`, `trajectory.json` / `trajectory.jsonl`, and the original expert instructions (`steps.md`). Export renders every saved pre-action state at the evaluation resolution and reconstructs grip-site poses without stepping physics. The final trajectory record has a null action.
198
+
199
+ Use `--ids 0,4` to export a subset. Existing `task_NNN/` directories are never overwritten; choose a new output directory for another export.
200
+
201
+ In the packaged HDF5 demonstrations, observations and simulator states precede each paired action; rewards and success flags follow it. Runtime scene loading uses the packaged BDDL and assets. The six files in `expert_reference/text/` contain demonstration steps and measured keypoints, and supply the exported `steps.md`.
202
+
203
+ <a id="troubleshooting"></a>
204
+
205
+ ## 🛠️ Troubleshooting
206
+
207
+ | Symptom | What to check |
208
+ |---|---|
209
+ | pip rejects the Python version | Run `python --version` inside the active environment. This release requires Python 3.12. |
210
+ | `geomotion: command not found` | Activate `.venv` and repeat the editable install with that environment's `python -m pip`. You can also use `python -m geomotion.cli --help`. |
211
+ | OSMesa cannot load, or OpenGL initialization fails | Check that `libosmesa6` is installed in the system or container running Python. Try `geomotion smoke --ids 0 --renderer osmesa` in a fresh process. |
212
+ | Wand cannot find ImageMagick / MagickWand | Install `libmagickwand-dev` in the system or container running Python. |
213
+ | EGL initialization fails | Check the GPU driver and EGL availability inside the runtime. Use `--renderer osmesa` to run without GPU rendering. |
214
+ | `renderer is already initialized` or `LIBERO config already initialized` | Start a fresh Python process or restart the notebook kernel, and configure GeoMotion before importing the simulator. |
215
+ | Expert ID is rejected | Replay and export support only `0,4,8,26,28,34`; smoke checks support all IDs from 0 to 35. |
216
+
217
+ When reporting a problem, include the command you ran, the full traceback, your OS and Python version, the selected renderer, and the `geomotion doctor` output if it runs successfully. This makes installation issues easier to reproduce.
218
+
219
+ ## 📦 Building a wheel (optional)
220
+
221
+ For an installation that does not depend on the source checkout, build a wheel from the repository root:
222
+
223
+ ```bash
224
+ python -m pip install build
225
+ python -m build
226
+ ```
227
+
228
+ Install the resulting wheel in a fresh Python 3.12 environment with `python -m pip install /path/to/libero_geomotion-0.3.0-py3-none-any.whl`. The wheel includes the packaged scene assets and demonstrations. The system libraries from the installation section are still needed; rerun `geomotion doctor` and `geomotion smoke --ids 0` after installation.
229
+
230
+ ## 🤝 Acknowledgments
231
+
232
+ We thank the [official LIBERO-Plus repository](https://github.com/sylvestf/LIBERO-plus) for the simulation runtime and assets.
233
+
234
+ New code and documentation use the [MIT license](LICENSE); bundled upstream code and assets retain their [third-party notices](THIRD_PARTY_NOTICES/NOTICE).
README.zh-CN.md ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h1 align="center">LIBERO-GeoMotion</h1>
2
+
3
+ <p align="center"><a href="README.md">English</a> | <strong>简体中文</strong></p>
4
+
5
+ <p align="center">
6
+ <strong>面向几何约束机器人操作的仿真评测环境</strong><br>
7
+ 36 个固定场景 · 9 类任务 · 6 份专家示范
8
+ </p>
9
+
10
+ <p align="center">
11
+ <a href="#installation">安装</a> ·
12
+ <a href="#verify-your-installation">验证安装</a> ·
13
+ <a href="#python-api">Python API</a> ·
14
+ <a href="#evaluation">评测约定</a> ·
15
+ <a href="#troubleshooting">常见问题</a>
16
+ </p>
17
+
18
+ 欢迎使用 **LIBERO-GeoMotion**!这是一个基于 LIBERO 的独立仿真环境,用于评测机器人在几何约束下的操作能力,包括穿过狭窄通道、按指定朝向摆放物体、绕过障碍物,以及收纳物体后关闭抽屉或柜门。
19
+
20
+ 本仓库包含仿真运行代码、场景定义、所需基础资产、固定初态和六份专家示范。**获取仓库后即可安装运行,无需另外下载 LIBERO-plus 仓库或资产。** MuJoCo、robosuite 等 Python 依赖由 pip 安装。
21
+
22
+ 建议先运行一个场景确认安装成功,再检查全部场景,或通过 Python API 接入自己的策略。
23
+
24
+ <a id="installation"></a>
25
+
26
+ ## 🔧 安装
27
+
28
+ ### 1. 准备系统环境
29
+
30
+ | 项目 | 要求 |
31
+ |---|---|
32
+ | 操作系统 | Linux;下面的系统包安装命令适用于 Ubuntu / Debian |
33
+ | Python | **3.12**;本包要求 `>=3.12,<3.13` |
34
+ | Python 环境 | 使用独立虚拟环境,隔离仿真依赖 |
35
+ | 默认渲染方式 | OSMesa 离屏渲染,无需显示器或 GPU |
36
+ | 可选 GPU 渲染 | EGL,需要可用的 GPU 驱动和 EGL 运行库 |
37
+
38
+ 安装 OSMesa 和 ImageMagick 系统库:
39
+
40
+ ```bash
41
+ sudo apt-get update
42
+ sudo apt-get install -y libosmesa6 libmagickwand-dev
43
+ ```
44
+
45
+ OSMesa 提供默认渲染后端;仓库中的图像处理代码通过 Wand 使用 ImageMagick。这些系统库需要单独安装,不能只安装 Python 包。
46
+
47
+ 后续步骤假设系统已经提供 `python3.12`,且支持 `venv`。如果你的发行版单独提供虚拟环境支持,请先安装对应的 `python3.12-venv` 包。
48
+
49
+ ### 2. 安装仿真环境
50
+
51
+ 下载或克隆本仓库,在仓库根目录打开终端,然后运行:
52
+
53
+ ```bash
54
+ python3.12 -m venv .venv
55
+ source .venv/bin/activate
56
+ python -m pip install --upgrade pip
57
+ python -m pip install -e . -c constraints-tested.txt
58
+ geomotion --help
59
+ ```
60
+
61
+ [`constraints-tested.txt`](constraints-tested.txt) 记录了经过验证的 Linux 依赖版本。`-c` 会约束本项目所需依赖的版本,不会安装文件中列出的所有包。可编辑安装(`-e .`)直接使用当前仓库中的代码和资产,因此安装后请保留仓库目录。
62
+
63
+ 每次打开新终端时,在仓库根目录重新运行 `source .venv/bin/activate`。本发行包提供 `libero` Python 命名空间,请将其他 LIBERO 安装放在不同的虚拟环境中。
64
+
65
+ <a id="verify-your-installation"></a>
66
+
67
+ ## ✅ 验证安装
68
+
69
+ ### 1. 检查安装
70
+
71
+ ```bash
72
+ geomotion doctor
73
+ ```
74
+
75
+ 该命令会加载任务集,并报告依赖版本。成功时,JSON 结果包含 `"passed": true`、`"tasks": 36`,以及示范 ID `[0, 4, 8, 26, 28, 34]`。它不会创建仿真场景,也不会验证渲染。
76
+
77
+ ### 2. 运行第一个场景
78
+
79
+ ```bash
80
+ geomotion smoke --ids 0
81
+ ```
82
+
83
+ 该命令会创建任务 0,恢复固定初态,检查两个相机的 256 × 256 图像,并执行一个动作。成功时,结果包含 `"passed": true`、`"initial_state_error": 0.0`,以及接近 `0.05` 的 `elapsed_seconds`(对应 20 Hz 控制频率)。
84
+
85
+ **运行时不会弹出窗口:** 检查使用离屏渲染。`success_after_one_step` 表示执行这一个动作后是否完成了任务;值为 `false` 是正常的,不代表安装失败。
86
+
87
+ ### 3. 检查全部场景并回放专家示范
88
+
89
+ 第一个场景运行成功后,可以继续执行完整检查:
90
+
91
+ ```bash
92
+ geomotion smoke --ids all --output validation/smoke.json
93
+ geomotion replay-experts --ids all --output validation/experts.json
94
+ ```
95
+
96
+ `smoke` 检查全部 36 个场景。专家回放检查的是**随包提供的六份示范**:验证初态后,在仿真中执行记录的动作。每份示范回放成功时都会报告 `"success": true`。回放比单场景检查耗时更长,且不启用相机观测。
97
+
98
+ 可以用逗号分隔 ID 来缩小范围,例如 `geomotion smoke --ids 0,4,8`。`replay-experts` 仅支持 ID `0,4,8,26,28,34`。可选的 `--output` 会在检查成功后保存 JSON 报告。
99
+
100
+ ### 可选:使用 GPU 渲染
101
+
102
+ 命令行默认使用 OSMesa。如果机器已经配置好 EGL,可以显式选择:
103
+
104
+ ```bash
105
+ geomotion smoke --ids 0 --renderer egl
106
+ ```
107
+
108
+ 在 Python 中,先调用 `geomotion.make_env(0, renderer="egl")`,再导入 MuJoCo 或其他依赖 OpenGL 的模块。切换渲染后端时请启动新进程;如果使用 notebook,请先重启内核。
109
+
110
+ <a id="python-api"></a>
111
+
112
+ ## 🐍 Python API
113
+
114
+ 下面的最小示例会加载一个场景,打印任务指令和图像尺寸,执行一次保持末端���动、夹爪张开的指令,最后关闭环境:
115
+
116
+ ```python
117
+ import geomotion
118
+
119
+ suite = geomotion.get_suite()
120
+ print("Tasks:", suite.n_tasks)
121
+ print("Instruction:", suite.get_task(0).language)
122
+
123
+ env, obs = geomotion.make_env(0)
124
+ try:
125
+ print("Agent view:", obs["agentview_image"].shape) # (256, 256, 3)
126
+ print("Wrist view:", obs["robot0_eye_in_hand_image"].shape) # (256, 256, 3)
127
+ action = [0, 0, 0, 0, 0, 0, -1]
128
+ obs, reward, done, info = env.step(action)
129
+ print("Task success:", bool(env.check_success()))
130
+ finally:
131
+ env.close()
132
+ ```
133
+
134
+ 评测策略时,将示例动作替换为策略输出,最多执行 **4,000 个动作**,并在 `env.check_success()` 为真时立即停止。示例动作仅用于验证接口,不是完成任务的策略。
135
+
136
+ 动作是 `[-1, 1]` 范围内的七维原生 `OSC_POSE` 控制量:三个平移分量、三个旋转分量,以及一个夹爪指令(`-1` 张开,`+1` 闭合)。每个新回合都通过 `geomotion.make_env(task_id)` 恢复随包提供的固定初态;直接调用 `env.reset()` 不会恢复该初态。
137
+
138
+ 运行配置默认保存在 `~/.cache/libero-geomotion/`(或 `$XDG_CACHE_HOME/libero-geomotion/`)下,与当前安装对应的目录中。可以通过 `make_env()` 的 `config_dir` 参数指定其他目录。如果已经设置了 `LIBERO_CONFIG_PATH`,运行时会使用该目录,除非显式传入 `config_dir`。
139
+
140
+ <a id="evaluation"></a>
141
+
142
+ ## 📐 任务与评测约定
143
+
144
+ 任务 ID 固定为 **0 至 35**,发布的任务集名称为 `libero_rp`。
145
+
146
+ | 任务类别 | 任务 ID |
147
+ |---|---|
148
+ | 长条穿窄通道 | 0–3 |
149
+ | 书本直立入槽 | 4–7 |
150
+ | 瓶子定向入架 | 8–11 |
151
+ | 盘子绕障推移 | 12–15 |
152
+ | 书本入抽屉并关闭 | 16–19 |
153
+ | 单杯定向入箱并关门 | 20–23 |
154
+ | 芒果搬运与避碰 | 24–27 |
155
+ | 食品盒入抽屉并关闭 | 28–33 |
156
+ | 双杯定向入箱并关门 | 34–35 |
157
+
158
+ 默认评测设置如下:
159
+
160
+ | 设置 | 默认值 |
161
+ |---|---|
162
+ | 机器人与控制器 | Panda,增量 `OSC_POSE` |
163
+ | 初始化 | 固定初态 0,seed 0,不执行预热步 |
164
+ | 控制频率 | 20 Hz |
165
+ | RGB 观测 | `agentview` 和 `robot0_eye_in_hand`,全程每个视角均为 256 × 256 |
166
+ | 回合预算 | 4,000 个原生动作 |
167
+ | 结束条件 | `env.check_success()` 为真或耗尽动作预算;不依赖 `done` |
168
+
169
+ 任务成功由官方判定逻辑决定,涵盖位置、朝向、释放、稳定放置、门或抽屉状态,以及各任务的过程约束或安全约束。仿真几何真值、物体位姿和判定器内部状态仅供评测端使用;策略输入为任务指令、相机图像、机器人本体状态和显式选择的参考示范。
170
+
171
+ 报告结果时,请给出逐场景与逐类别成功率,并区分整体场景平均和类别宏平均,因为各类别的场景数量不同。完整设置和任务说明见 [`evaluation_protocol.json`](geomotion/resources/evaluation_protocol.json)、[`task_families.json`](geomotion/resources/task_families.json) 和[任务清单](libero_rotation_planning/benchmark/task_manifest.json)。
172
+
173
+ ## 🎬 专家示范
174
+
175
+ 本任务集包含 **9 类任务,其中 6 类各有一份对应的参考示范,另外 3 类暂无参考示范**。六份示范位于 [`geomotion/resources/expert_reference/`](geomotion/resources/expert_reference/),分别对应场景 ID **0、4、8、26、28、34**,各自与对应测试场景使用相同的固定初态。暂无参考示范的 3 类任务为:**盘子绕障推移、书本入抽屉并关闭、单杯定向入箱并关门**。报告评测结果时,请明确说明参考示范的选择方式。
176
+
177
+ 可以将随包提供的 HDF5 示范导出为视频、文字和轨迹文件:
178
+
179
+ ```bash
180
+ geomotion export-references --ids all --output ./geomotion-references-256
181
+ ```
182
+
183
+ 每个 `task_NNN/` 目录包含双视角无损 `agentview.mp4` 和 `wrist.mp4`(每个视角 256 × 256)、`videos.json`、`trajectory.json` / `trajectory.jsonl`,以及原始专家说明 `steps.md`。导出按评测分辨率重新渲染每个动作前状态,同时恢复夹爪控制点位姿,不推进物理仿真。最后一条轨迹记录的动作为空。
184
+
185
+ 使用 `--ids 0,4` 可以只导出部分示范。已有的 `task_NNN/` 目录不会被覆盖;再次导出时请选择新的输出目录。
186
+
187
+ 随包 HDF5 示范中的观测和仿真状态对应每个动作执行前,奖励和成功标记对应动作执行后。运行时使用随包提供的 BDDL 和资产加载场景。`expert_reference/text/` 中的六份文件记录各示范的操作步骤和实测关键点,是导出 `steps.md` 的数据来源。
188
+
189
+ <a id="troubleshooting"></a>
190
+
191
+ ## 🛠️ 常见问题
192
+
193
+ | 现象 | 排查方法 |
194
+ |---|---|
195
+ | pip 提示 Python 版本不兼容 | 在当前环境中执行 `python --version`;本版本要求 Python 3.12。 |
196
+ | `geomotion: command not found` | 激活 `.venv`,使用该环境的 `python -m pip` 重新执行可编辑安装。也可以运行 `python -m geomotion.cli --help`。 |
197
+ | 无法加载 OSMesa,或 OpenGL 初始化失��� | 确认运行 Python 的系统或容器内已安装 `libosmesa6`,在新进程中尝试 `geomotion smoke --ids 0 --renderer osmesa`。 |
198
+ | Wand 找不到 ImageMagick / MagickWand | 在运行 Python 的系统或容器内安装 `libmagickwand-dev`。 |
199
+ | EGL 初始化失败 | 检查运行环境内的 GPU 驱动和 EGL 是否可用;可使用 `--renderer osmesa` 在无需 GPU 渲染的情况下运行。 |
200
+ | `renderer is already initialized` 或 `LIBERO config already initialized` | 启动新 Python 进程或重启 notebook 内核,并在导入仿真模块前配置 GeoMotion。 |
201
+ | 专家示范 ID 不受支持 | 回放和导出仅支持 `0,4,8,26,28,34`;场景检查支持 0 至 35 的全部 ID。 |
202
+
203
+ 反馈问题时,请附上执行的命令、完整报错、操作系统和 Python 版本、所选渲染后端,以及 `geomotion doctor` 的输出(如果能够成功运行),方便复现安装问题。
204
+
205
+ ## 📦 构建 wheel(可选)
206
+
207
+ 如果希望安装后不再依赖源码目录,可以在仓库根目录构建 wheel:
208
+
209
+ ```bash
210
+ python -m pip install build
211
+ python -m build
212
+ ```
213
+
214
+ 在新的 Python 3.12 环境中执行 `python -m pip install /path/to/libero_geomotion-0.3.0-py3-none-any.whl`,安装生成的 wheel。场景资产和示范会随包提供,安装章节中的系统库仍需准备。安装后重新运行 `geomotion doctor` 和 `geomotion smoke --ids 0`。
215
+
216
+ ## 🤝 致谢
217
+
218
+ 感谢 [LIBERO-Plus 官方仓库](https://github.com/sylvestf/LIBERO-plus) 提供的仿真运行代码与资产支持。
219
+
220
+ 新增代码和文档使用 [MIT 许可证](LICENSE);随包提供的上游代码与资产保留各自的[第三方声明](THIRD_PARTY_NOTICES/NOTICE)。
THIRD_PARTY_NOTICES/LIBERO_LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Lifelong Robot Learning
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
THIRD_PARTY_NOTICES/NOTICE ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party notices
2
+
3
+ GEoMotion's new code/documentation uses the root MIT license. Do not treat that notice as a replacement copyright or a blanket grant for externally sourced assets.
4
+
5
+ * LIBERO source: https://github.com/Lifelong-Robot-Learning/LIBERO . Its MIT notice is retained as `LIBERO_LICENSE` (source: https://raw.githubusercontent.com/Lifelong-Robot-Learning/LIBERO/master/LICENSE).
6
+ * LIBERO-Plus simulator: https://github.com/sylvestf/LIBERO-plus . The bundled runtime is based on commit `4976dc30028e805ff8094b55501d532c48fec182`.
7
+ * LIBERO-Plus assets: https://huggingface.co/datasets/Sylvest/LIBERO-plus . The [upstream dataset card](https://huggingface.co/datasets/Sylvest/LIBERO-plus/blob/main/README.md) declares MIT. The source checkout did not include a root license file.
8
+ * Asset sources and geometry adaptations are listed in [asset_provenance.json](asset_provenance.json) and [additional_asset_provenance.json](additional_asset_provenance.json). Decorative books reuse the book mesh; food packages and the white mug are additional upstream-derived assets.
9
+
10
+ Bundled assets retain their upstream terms. The dataset's MIT declaration does not establish separate license grants from the original mesh and texture suppliers, including scanned/new-object and TurboSquid collections; no supplier-specific licenses were included in the source distribution.
11
+
12
+ Base arena resources are bundled; robot and simulator-library resources come from the installed robosuite distribution. Python dependencies are installed separately under their own licenses.
THIRD_PARTY_NOTICES/additional_asset_provenance.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "category": "rp_mango",
4
+ "source": "libero/libero/assets/new_objects/half_mango/jywliv/usd/MJCF/jywliv.xml",
5
+ "scale": [
6
+ 1.0969739087223997,
7
+ 0.5860699401588242,
8
+ 1.3205693562531964
9
+ ],
10
+ "method": "Native textured half-mango visual; 130 x 60 x 46 mm rigid ellipsoid collision proxy matching visual bounds. Proxy avoids unstable contacts from tiny scan facets; it approximates the cut surface."
11
+ },
12
+ {
13
+ "category": "rp_plate",
14
+ "source": "libero/libero/assets/stable_scanned_objects/plate/plate.xml",
15
+ "scale": [
16
+ 1,
17
+ 1,
18
+ 1
19
+ ],
20
+ "center": [
21
+ 0.0,
22
+ 0.0,
23
+ 0.01
24
+ ],
25
+ "rotation_xyz_deg": [
26
+ 0,
27
+ 0,
28
+ 0
29
+ ],
30
+ "method": "Upstream scanned textured plate visual with a fitted 120 x 120 x 18 mm ellipsoid collision proxy; approximation of the rim and base for planar pushing, not suitable for nesting objects inside the plate."
31
+ },
32
+ {
33
+ "category": "rp_safety_cup",
34
+ "source": "libero/libero/assets/turbosquid_objects/porcelain_mug/porcelain_mug.xml",
35
+ "scale": [
36
+ 0.7,
37
+ 0.7,
38
+ 0.7
39
+ ],
40
+ "center": [
41
+ 0.011,
42
+ 0.0,
43
+ 0.053
44
+ ],
45
+ "rotation_xyz_deg": [
46
+ 0,
47
+ 0,
48
+ 180
49
+ ],
50
+ "method": "Upstream textured visual mesh and corresponding collision geometry transformed together; no primitive visual replacement."
51
+ },
52
+ {
53
+ "category": "native_drawer_fixtures",
54
+ "source": "libero/libero/assets/articulated_objects/wooden_cabinet.xml",
55
+ "method": "Native textured cabinet, transformed by -90 degrees around Z into the front-negative-X fixture frame. Only the selected drawer slide remains active; narrow insert rails are additional visible collision geometry. Bottom-drawer variants stand on four 80 mm legs."
56
+ }
57
+ ]
THIRD_PARTY_NOTICES/asset_provenance.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "category": "rp_book",
4
+ "source": "libero/libero/assets/new_objects/comic_book/qkczyc/usd/MJCF/qkczyc.xml",
5
+ "scale": [
6
+ 0.6187964231959303,
7
+ 0.5215919496993368,
8
+ 1.153874979716362
9
+ ],
10
+ "center": [
11
+ 4.11495566368103e-05,
12
+ 0.004485875368118286,
13
+ -2.4493783712387085e-07
14
+ ],
15
+ "rotation_xyz_deg": [
16
+ 0,
17
+ 0,
18
+ 0
19
+ ],
20
+ "method": "Textured source book mesh with box collision fitted to its visual bounding dimensions."
21
+ },
22
+ {
23
+ "category": "rp_bottle",
24
+ "source": "libero/libero/assets/turbosquid_objects/wine_bottle/wine_bottle.xml",
25
+ "scale": [
26
+ 1,
27
+ 1,
28
+ 1
29
+ ],
30
+ "center": [
31
+ 0.0,
32
+ 0.0,
33
+ 0.065
34
+ ],
35
+ "rotation_xyz_deg": [
36
+ 0,
37
+ 0,
38
+ 0
39
+ ],
40
+ "method": "Upstream textured visual mesh and corresponding collision geometry transformed together; no primitive visual replacement."
41
+ },
42
+ {
43
+ "category": "rp_mug",
44
+ "source": "libero/libero/assets/turbosquid_objects/white_yellow_mug/white_yellow_mug.xml",
45
+ "scale": [
46
+ 0.7,
47
+ 0.7,
48
+ 0.7
49
+ ],
50
+ "center": [
51
+ -0.018,
52
+ 0.0,
53
+ 0.055
54
+ ],
55
+ "rotation_xyz_deg": [
56
+ 0,
57
+ 0,
58
+ 0
59
+ ],
60
+ "method": "Upstream textured visual mesh and corresponding collision geometry transformed together; no primitive visual replacement."
61
+ }
62
+ ]
constraints-tested.txt ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python 3.12.13; validated Linux simulation environment.
2
+ absl-py==2.5.1
3
+ attrs==26.1.0
4
+ bddl==1.0.1
5
+ build==1.6.1
6
+ cloudpickle==3.1.2
7
+ contourpy==1.4.0
8
+ cycler==0.12.1
9
+ easydict==1.13
10
+ egl-probe==1.0.2
11
+ etils==1.14.0
12
+ evdev==2.0.0
13
+ fastjsonschema==2.22.2
14
+ filelock==4.2.4
15
+ fonttools==4.67.0
16
+ fsspec==2026.9.0
17
+ future==1.0.0
18
+ glfw==2.11.0
19
+ grpcio==1.84.0
20
+ gym==0.26.2
21
+ gym-notices==0.1.0
22
+ h5py==3.16.0
23
+ imageio==2.38.1
24
+ imageio-ffmpeg==0.6.0
25
+ iniconfig==2.3.1
26
+ jinja2==3.1.6
27
+ jsonschema==4.26.0
28
+ jsonschema-specifications==2025.9.1
29
+ jupyter-core==5.9.1
30
+ jupytext==1.19.6
31
+ kiwisolver==1.5.1
32
+ lazy-loader==0.6
33
+ llvmlite==0.50.0
34
+ markdown==3.11.2
35
+ markdown-it-py==4.2.0
36
+ markupsafe==3.0.4
37
+ matplotlib==3.11.2
38
+ mdit-py-plugins==0.6.1
39
+ mdurl==0.1.2
40
+ mpmath==1.3.0
41
+ mujoco==3.7.0
42
+ nbformat==5.11.1
43
+ networkx==3.7
44
+ numba==0.68.0
45
+ numpy==2.2.6
46
+ nvidia-cublas-cu12==12.6.4.1
47
+ nvidia-cuda-cupti-cu12==12.6.80
48
+ nvidia-cuda-nvrtc-cu12==12.6.77
49
+ nvidia-cuda-runtime-cu12==12.6.77
50
+ nvidia-cudnn-cu12==9.5.1.17
51
+ nvidia-cufft-cu12==11.3.0.4
52
+ nvidia-cufile-cu12==1.11.1.6
53
+ nvidia-curand-cu12==10.3.7.77
54
+ nvidia-cusolver-cu12==11.7.1.2
55
+ nvidia-cusparse-cu12==12.5.4.2
56
+ nvidia-cusparselt-cu12==0.6.3
57
+ nvidia-nccl-cu12==2.26.2
58
+ nvidia-nvjitlink-cu12==12.6.85
59
+ nvidia-nvtx-cu12==12.6.77
60
+ opencv-python==5.0.0.93
61
+ opencv-python-headless==4.11.0.86
62
+ packaging==26.3
63
+ pillow==13.0.0
64
+ platformdirs==4.13.5
65
+ pluggy==1.7.0
66
+ protobuf==7.36.2
67
+ psutil==7.2.2
68
+ pygments==2.21.0
69
+ pynput==1.8.2
70
+ pyopengl==3.1.10
71
+ pyparsing==3.3.3
72
+ pyproject-hooks==1.3.3
73
+ pytest==9.1.1
74
+ python-dateutil==2.9.0.post0
75
+ python-xlib==0.33
76
+ pyyaml==6.0.3
77
+ referencing==0.37.0
78
+ robomimic==0.3.0
79
+ robosuite==1.4.1
80
+ rpds-py==2026.9.1
81
+ scikit-image==0.26.0
82
+ scipy==1.18.1
83
+ setuptools==84.2.1
84
+ six==1.17.0
85
+ sympy==1.14.0
86
+ tensorboard==2.21.0
87
+ tensorboard-data-server==0.7.2
88
+ tensorboardx==2.6.5
89
+ termcolor==3.3.0
90
+ tifffile==2026.10.15
91
+ torch==2.7.1
92
+ torchvision==0.22.1
93
+ tqdm==4.70.1
94
+ traitlets==5.16.1
95
+ triton==3.3.1
96
+ typing-extensions==4.16.0
97
+ wand==0.7.2
98
+ werkzeug==3.1.9
99
+ zipp==4.1.1
geomotion/__init__.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Portable LIBERO-GeoMotion runtime; importing this module loads no simulator."""
2
+ __version__ = "0.3.0"
3
+
4
+ from .runtime import evaluation_protocol
5
+
6
+ _PROTOCOL = evaluation_protocol()
7
+
8
+
9
+ def get_suite():
10
+ from .runtime import configure
11
+ configure()
12
+ return _make_suite()
13
+
14
+
15
+ def _make_suite():
16
+ """Construct a fresh suite after the caller has configured the runtime."""
17
+ from libero_rotation_planning import LIBERO_RP
18
+ return LIBERO_RP(task_order_index=_PROTOCOL["task_order_index"])
19
+
20
+
21
+ def make_env(task_id, *, seed=0, renderer=None, config_dir=None,
22
+ image_size=_PROTOCOL["camera_resolution"][0],
23
+ max_steps=_PROTOCOL["max_episode_steps"], camera_obs=True):
24
+ """Return (env, initial_observation) at fixed state 0, with no physics steps.
25
+
26
+ The caller owns env.close() and stops on env.check_success() or max_steps.
27
+ Create a fresh episode with this factory instead of using env.reset().
28
+ """
29
+ from .runtime import configure
30
+ configure(renderer=renderer, config_dir=config_dir)
31
+ suite = _make_suite()
32
+ task_count = suite.n_tasks
33
+ if type(task_id) is not int or not 0 <= task_id < task_count:
34
+ raise ValueError(f"task_id must be an integer in 0..{task_count - 1}")
35
+ if type(seed) is not int or seed < 0:
36
+ raise ValueError("seed must be a nonnegative integer")
37
+ if type(image_size) is not int or not 32 <= image_size <= 2048:
38
+ raise ValueError("image_size must be in 32..2048")
39
+ if type(max_steps) is not int or max_steps < 1:
40
+ raise ValueError("max_steps must be positive")
41
+ from libero.libero.envs import OffScreenRenderEnv
42
+ env = OffScreenRenderEnv(
43
+ bddl_file_name=suite.get_task_bddl_file_path(task_id), robots=list(_PROTOCOL["robots"]),
44
+ controller=_PROTOCOL["controller"], control_freq=_PROTOCOL["control_frequency_hz"],
45
+ horizon=max_steps, ignore_done=_PROTOCOL["ignore_done"],
46
+ hard_reset=False, use_camera_obs=camera_obs, has_offscreen_renderer=camera_obs,
47
+ camera_names=list(_PROTOCOL["camera_names"]),
48
+ camera_heights=image_size, camera_widths=image_size,
49
+ camera_depths=False, camera_segmentations=None)
50
+ try:
51
+ env.seed(seed)
52
+ env.env.reset()
53
+ obs = env.set_init_state(suite.get_task_init_states(task_id)[_PROTOCOL["initial_state_indices"][0]])
54
+ if env.check_success():
55
+ raise ValueError("initial state already satisfies task")
56
+ return env, obs
57
+ except BaseException:
58
+ env.close()
59
+ raise
geomotion/cli.py ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Installation checks, fixed-scene smoke checks, expert replay and reference export."""
2
+ import argparse
3
+ import contextlib
4
+ import importlib.metadata
5
+ import json
6
+ from pathlib import Path
7
+ import sys
8
+
9
+ from .runtime import RESOURCES, configure, reference_manifest, evaluation_protocol, task_manifest
10
+
11
+
12
+ def ids(value, available):
13
+ selected = list(available) if value == "all" else [int(v) for v in value.split(",")]
14
+ if not selected or len(set(selected)) != len(selected) or set(selected) - set(available):
15
+ raise ValueError(f"ids must be unique members of {list(available)}")
16
+ return selected
17
+
18
+
19
+ def doctor():
20
+ from . import get_suite
21
+ suite = get_suite()
22
+ if suite.n_tasks != len(task_manifest()):
23
+ raise ValueError("task count differs from manifest")
24
+ return dict(passed=True, tasks=suite.n_tasks,
25
+ references=[r["id"] for r in reference_manifest()["references"]],
26
+ packages={p: importlib.metadata.version(p) for p in
27
+ ("numpy", "scipy", "torch", "mujoco", "robosuite", "h5py", "PyOpenGL")})
28
+
29
+
30
+ def smoke(task_id):
31
+ import numpy as np
32
+ from . import get_suite, make_env
33
+ protocol = evaluation_protocol()
34
+ env, obs = make_env(task_id)
35
+ try:
36
+ initial = get_suite().get_task_init_states(task_id)[protocol["initial_state_indices"][0]]
37
+ state_error = float(np.max(np.abs(env.sim.get_state().flatten() - initial)))
38
+ if state_error > 1e-12 or env.check_success():
39
+ raise ValueError("fixed initial state mismatch")
40
+ def validate_images(observation):
41
+ for camera in protocol["camera_names"]:
42
+ image = observation[camera + "_image"]
43
+ if image.shape != (*protocol["camera_resolution"], 3) or image.dtype != np.uint8:
44
+ raise ValueError("invalid camera observation")
45
+
46
+ validate_images(obs)
47
+ before = float(env.sim.data.time)
48
+ obs, _, _, _ = env.step([0, 0, 0, 0, 0, 0, -1])
49
+ validate_images(obs)
50
+ elapsed = float(env.sim.data.time) - before
51
+ if not np.isclose(elapsed, 1 / protocol["control_frequency_hz"], atol=1e-9):
52
+ raise ValueError("incorrect native step frequency")
53
+ return dict(id=task_id, passed=True, initial_state_error=state_error,
54
+ camera_names=protocol["camera_names"],
55
+ camera_resolution=protocol["camera_resolution"],
56
+ initialization_steps=0, elapsed_seconds=elapsed,
57
+ success_after_one_step=bool(env.check_success()))
58
+ finally:
59
+ env.close()
60
+
61
+
62
+ def replay(task_id):
63
+ import h5py
64
+ import numpy as np
65
+ from . import make_env
66
+ row = next(r for r in reference_manifest()["references"] if r["id"] == task_id)
67
+ folder = RESOURCES / "expert_reference"
68
+ with h5py.File(folder / row["files"]["dataset"]["path"], "r") as f:
69
+ actions = f["data/demo_0/actions"][:]
70
+ first = f["data/demo_0/states"][0]
71
+ env, _ = make_env(task_id, camera_obs=False)
72
+ try:
73
+ error = float(np.max(np.abs(first - env.sim.get_state().flatten())))
74
+ if error > 1e-12:
75
+ raise ValueError("expert and test initial state differ")
76
+ first_success = None
77
+ for i, action in enumerate(actions, 1):
78
+ env.step(action)
79
+ if env.check_success() and first_success is None:
80
+ first_success = i
81
+ if not env.check_success():
82
+ raise ValueError(f"expert replay did not succeed: {task_id}")
83
+ return dict(id=task_id, success=True, actions=len(actions),
84
+ first_success_step=first_success, initial_state_error=error)
85
+ finally:
86
+ env.close()
87
+
88
+
89
+ def main(argv=None):
90
+ parser = argparse.ArgumentParser(description=__doc__)
91
+ parser.add_argument("command", choices=("doctor", "smoke", "replay-experts", "export-references"))
92
+ parser.add_argument("--ids", default="all")
93
+ parser.add_argument("--renderer", choices=("osmesa", "egl"), default="osmesa")
94
+ parser.add_argument("--output", type=Path,
95
+ help="required destination directory for export-references; optional JSON report otherwise")
96
+ args = parser.parse_args(argv)
97
+ if args.command == "export-references" and args.output is None:
98
+ parser.error("export-references requires --output DIRECTORY")
99
+ results = []
100
+ try:
101
+ configure(renderer=args.renderer)
102
+ if args.command == "export-references":
103
+ from .export_references import convert
104
+ rows = {r["id"]: r for r in reference_manifest()["references"]}
105
+ selected = ids(args.ids, rows)
106
+ output = args.output.expanduser().resolve()
107
+ for tid in selected:
108
+ destination = output / f"task_{tid:03d}"
109
+ if destination.exists() or destination.is_symlink():
110
+ raise FileExistsError(f"refusing to overwrite {destination}")
111
+ for tid in selected:
112
+ with contextlib.redirect_stdout(sys.stderr):
113
+ result = convert(rows[tid], output / f"task_{tid:03d}")
114
+ print(json.dumps(result), flush=True)
115
+ return 0
116
+ if args.command == "doctor":
117
+ with contextlib.redirect_stdout(sys.stderr):
118
+ results.append(doctor())
119
+ print(json.dumps(results[-1]), flush=True)
120
+ else:
121
+ available = ([t["id"] for t in task_manifest()] if args.command == "smoke"
122
+ else [r["id"] for r in reference_manifest()["references"]])
123
+ for tid in ids(args.ids, available):
124
+ with contextlib.redirect_stdout(sys.stderr):
125
+ result = smoke(tid) if args.command == "smoke" else replay(tid)
126
+ results.append(result)
127
+ print(json.dumps(result), flush=True)
128
+ if args.output:
129
+ args.output.parent.mkdir(parents=True, exist_ok=True)
130
+ args.output.write_text(json.dumps(dict(passed=True, command=args.command, results=results), indent=2) + "\n")
131
+ return 0
132
+ except (ValueError, OSError) as exc:
133
+ parser.exit(1, str(exc) + "\n")
134
+
135
+
136
+ if __name__ == "__main__":
137
+ raise SystemExit(main())
geomotion/export_references.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Export packaged experts as portable videos, text and quaternion trajectories.
2
+
3
+ Run: geomotion export-references --output /path/to/references --ids all
4
+ The output uses the existing LIBERO reference protocol consumed by GPT-GEAR.
5
+ """
6
+ from contextlib import ExitStack
7
+ import json
8
+ import shutil
9
+ import sys
10
+
11
+ # Published libero-codex-trajectory-v1 protocol; no consumer runtime dependency.
12
+ ACTION_SEMANTICS = dict(
13
+ meaning='current frame to next frame; last frame is null',
14
+ dpos='p[t+1] - p[t], metres in environment axes',
15
+ dquat='q[t+1] * inverse(q[t]), shortest relative wxyz rotation, left multiplication',
16
+ gripper='actions[t,6]: -1=open, +1=close; null for gaps or unknown commands',
17
+ execution='reference only; execution parameters are chosen by the consumer',
18
+ )
19
+
20
+
21
+ def compact_json(value):
22
+ return json.dumps(value, ensure_ascii=False, allow_nan=False, separators=(',', ':'))
23
+
24
+
25
+ def convert(row, output):
26
+ import h5py
27
+ import imageio.v2 as imageio
28
+ import numpy as np
29
+ from scipy.spatial.transform import Rotation
30
+ import geomotion
31
+ from geomotion.runtime import RESOURCES, evaluation_protocol
32
+
33
+ folder = RESOURCES / 'expert_reference'
34
+ protocol = evaluation_protocol()
35
+ height, width = protocol['camera_resolution']
36
+ cameras = {name: ('wrist.mp4' if name == 'robot0_eye_in_hand' else name + '.mp4')
37
+ for name in protocol['camera_names']}
38
+ rendering = dict(camera_names=list(cameras), camera_resolution=[height, width],
39
+ image_origin='top-left', method='saved_state_render')
40
+ fps = row['control_hz']
41
+ output.mkdir(parents=True, exist_ok=False)
42
+ env = None
43
+ try:
44
+ env, _ = geomotion.make_env(row['id'], camera_obs=False)
45
+ positions, rotations = [], []
46
+ with h5py.File(folder / row['files']['dataset']['path'], 'r') as h5:
47
+ data = h5['data/demo_0']
48
+ count = len(data['actions'])
49
+ if count < 1 or count != row['num_samples'] or len(data['states']) != count:
50
+ raise ValueError('expert sample count mismatch')
51
+ if not np.allclose(env.sim.get_state().flatten(), data['states'][0], rtol=0, atol=1e-12):
52
+ raise ValueError('expert initial state differs from packaged scene')
53
+ states = data['states'][:]
54
+ # Render saved pre-action states at the evaluation resolution. The
55
+ # source HDF5's historical 128px images cannot supply this detail.
56
+ with ExitStack() as stack:
57
+ videos = {}
58
+ for name, filename in cameras.items():
59
+ writer = imageio.get_writer(str(output / filename), fps=fps,
60
+ codec='libx264rgb', pixelformat='rgb24', macro_block_size=None,
61
+ ffmpeg_params=['-crf', '0', '-threads', '1'])
62
+ stack.callback(writer.close)
63
+ videos[name] = writer
64
+ for i in range(count):
65
+ env.sim.set_state_from_flattened(states[i])
66
+ env.sim.forward() # reconstruct the recorded state, never replay physics
67
+ sid = env.robots[0].eef_site_id
68
+ positions.append(env.sim.data.site_xpos[sid].copy())
69
+ rotations.append(env.sim.data.site_xmat[sid].copy().reshape(3, 3))
70
+ for name, writer in videos.items():
71
+ rgb = env.sim.render(width=width, height=height, camera_name=name)
72
+ writer.append_data(np.ascontiguousarray(rgb[::-1]))
73
+ if (i + 1) % 250 == 0 or i + 1 == count:
74
+ print(f"task {row['id']:03d}: rendered {i + 1}/{count}",
75
+ file=sys.stderr, flush=True)
76
+ actions = data['actions'][:]
77
+ positions = np.asarray(positions)
78
+ if not all(np.isfinite(v).all() for v in (positions, rotations, actions)):
79
+ raise ValueError('non-finite expert pose or action')
80
+ orientation = Rotation.from_matrix(rotations)
81
+ records = []
82
+ for i in range(count):
83
+ action = None
84
+ if i + 1 < count:
85
+ xyzw = (orientation[i + 1] * orientation[i].inv()).as_quat()
86
+ wxyz = xyzw[[3, 0, 1, 2]]
87
+ if wxyz[0] < 0:
88
+ wxyz = -wxyz
89
+ grip = float(actions[i, 6])
90
+ action = dict(dpos=(positions[i + 1] - positions[i]).tolist(),
91
+ dquat=wxyz.tolist(),
92
+ gripper='close' if grip > 0 else 'open' if grip < 0 else None)
93
+ records.append(dict(frame_index=i, action=action))
94
+ descriptor = dict(format='libero-codex-trajectory-v1', frames=count, fps=fps,
95
+ pose=dict(reference='robot0_grip_site', coordinate_frame='environment',
96
+ position_unit='metre', quaternion_order='wxyz'),
97
+ action=ACTION_SEMANTICS,
98
+ sampling=dict(video='frame_aligned_pre_action', nominal_sample_interval_seconds=1 / fps,
99
+ sampling_gaps=[], unknown_gripper_action_frames=[
100
+ i for i, r in enumerate(records[:-1]) if r['action']['gripper'] is None]),
101
+ files=dict(trajectory='trajectory.jsonl', videos=cameras))
102
+ (output / 'trajectory.jsonl').write_text(''.join(compact_json(r) + '\n' for r in records))
103
+ (output / 'trajectory.json').write_text(compact_json(descriptor) + '\n')
104
+ (output / 'videos.json').write_text(compact_json(dict(
105
+ format='sim-reference-videos-v1', videos=cameras, rendering=rendering)) + '\n')
106
+ shutil.copyfile(folder / row['files']['text']['path'], output / 'steps.md')
107
+ return dict(id=row['id'], frames=count, output=str(output), **rendering)
108
+ except BaseException:
109
+ shutil.rmtree(output) # only this newly created, incomplete conversion
110
+ raise
111
+ finally:
112
+ if env is not None:
113
+ env.close()
114
+
geomotion/resources/evaluation_protocol.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.3.0",
3
+ "suite": "libero_rp",
4
+ "task_order_index": 0,
5
+ "task_ids": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11,
18
+ 12,
19
+ 13,
20
+ 14,
21
+ 15,
22
+ 16,
23
+ 17,
24
+ 18,
25
+ 19,
26
+ 20,
27
+ 21,
28
+ 22,
29
+ 23,
30
+ 24,
31
+ 25,
32
+ 26,
33
+ 27,
34
+ 28,
35
+ 29,
36
+ 30,
37
+ 31,
38
+ 32,
39
+ 33,
40
+ 34,
41
+ 35
42
+ ],
43
+ "initial_state_indices": [
44
+ 0
45
+ ],
46
+ "control_frequency_hz": 20,
47
+ "max_episode_steps": 4000,
48
+ "robots": [
49
+ "Panda"
50
+ ],
51
+ "controller": "OSC_POSE",
52
+ "action_dimension": 7,
53
+ "action_range": [
54
+ -1,
55
+ 1
56
+ ],
57
+ "camera_names": [
58
+ "agentview",
59
+ "robot0_eye_in_hand"
60
+ ],
61
+ "camera_resolution": [
62
+ 256,
63
+ 256
64
+ ],
65
+ "policy_inputs": [
66
+ "task language",
67
+ "agentview RGB",
68
+ "wrist RGB",
69
+ "robot proprioception"
70
+ ],
71
+ "excluded_policy_inputs": [
72
+ "scene geometry truth",
73
+ "object poses",
74
+ "expert controller internals",
75
+ "success-predicate internal state"
76
+ ],
77
+ "success": "env.check_success(), including stable placement and sticky process/safety rules",
78
+ "report": [
79
+ "per-instance success",
80
+ "per-task-type success",
81
+ "overall instance mean"
82
+ ],
83
+ "reference_max_steps": 3519,
84
+ "note": "Fixed-instance initial benchmark; no empirically calibrated difficulty labels. Expert actions can include conservative holds and are not time-optimal.",
85
+ "ignore_done": true,
86
+ "episode_termination": "External evaluation loop: stop on env.check_success() or max_episode_steps."
87
+ }
geomotion/resources/expert_reference/actions/rp3_028_cream_cheese_drawer_v0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc077a9c33b664df98c3acc093c3c26f054b894cc089e1d95b356452496cca1b
3
+ size 154856
geomotion/resources/expert_reference/actions/rp3_034_two_mugs_v0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f179e6840bbd16f228a7dd46fcf03a53e5e74c304cea89323d75e038a6299a64
3
+ size 148752
geomotion/resources/expert_reference/actions/rp_008_bar_gate_v0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:670f364633c91c9ff810dc32d3cffe2dfc819c637a082946b9593e082441e61c
3
+ size 109328
geomotion/resources/expert_reference/actions/rp_012_book_slot_v0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07ccf05f5829aa562a52b61a5144cec0cf5c3921c3be94bc2d640e3b806b7367
3
+ size 33112
geomotion/resources/expert_reference/actions/rp_016_bottle_shelf_v0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:929b872857dd52704f7d42564433734c83c108f7951d31e0665534ad8209e848
3
+ size 78360
geomotion/resources/expert_reference/actions/rp_050_mango_safety_yaw90_layout0_actions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccb40c37e708289120e00ea0f9e7cb60fcc8471faf9ba7da8dda72a34a21320a
3
+ size 52488
geomotion/resources/expert_reference/dataset/rp3_028_cream_cheese_drawer_v0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:231370b83a581848ee7dcd350e4558838405049a6e9b8257199fab9e72ce794e
3
+ size 33591727
geomotion/resources/expert_reference/dataset/rp3_034_two_mugs_v0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3369ec9561cd2f8b6014a86d866af339fe7dff3cbae069378981449e7d99f039
3
+ size 39433757
geomotion/resources/expert_reference/dataset/rp_008_bar_gate_v0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb2c7ef42f58808bf40a069b97b0a6aab2ef4ecdf5aa927f6aff484616f3a01f
3
+ size 18431631
geomotion/resources/expert_reference/dataset/rp_012_book_slot_v0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbac04dc60cc3587d55e39246d211a32c1fc9480bd21ea92cfe95c779a073364
3
+ size 10745259
geomotion/resources/expert_reference/dataset/rp_016_bottle_shelf_v0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:057e1cc0d10d9907c0b73e6a9da83a0457833a9c46d8811ce56b0bf1cf8a4b8b
3
+ size 21205538
geomotion/resources/expert_reference/dataset/rp_050_mango_safety_yaw90_layout0_demo.hdf5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5551d4b00ad36df3ed6096cec68cdd18819f8a0f081540fd8f9ec573ca94e28
3
+ size 15288260
geomotion/resources/expert_reference/reference_manifest.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "references": [
3
+ {
4
+ "id": 0,
5
+ "name": "rp_008_bar_gate_v0",
6
+ "language": "put the blue bar on the green pad",
7
+ "label_zh": "把蓝色长条放到绿色垫子上",
8
+ "num_samples": 1950,
9
+ "control_hz": 20,
10
+ "files": {
11
+ "dataset": {
12
+ "path": "dataset/rp_008_bar_gate_v0_demo.hdf5"
13
+ },
14
+ "video": {
15
+ "path": "video/rp_008_bar_gate_v0_replay.mp4"
16
+ },
17
+ "actions": {
18
+ "path": "actions/rp_008_bar_gate_v0_actions.npy"
19
+ },
20
+ "measured_trajectory_csv": {
21
+ "path": "trajectory/rp_008_bar_gate_v0_eef.csv"
22
+ },
23
+ "text": {
24
+ "path": "text/rp_008_bar_gate_v0.md"
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "id": 4,
30
+ "name": "rp_012_book_slot_v0",
31
+ "language": "put the book upright in the organizer",
32
+ "label_zh": "把书本直立放入收纳槽",
33
+ "num_samples": 589,
34
+ "control_hz": 20,
35
+ "files": {
36
+ "dataset": {
37
+ "path": "dataset/rp_012_book_slot_v0_demo.hdf5"
38
+ },
39
+ "video": {
40
+ "path": "video/rp_012_book_slot_v0_replay.mp4"
41
+ },
42
+ "actions": {
43
+ "path": "actions/rp_012_book_slot_v0_actions.npy"
44
+ },
45
+ "measured_trajectory_csv": {
46
+ "path": "trajectory/rp_012_book_slot_v0_eef.csv"
47
+ },
48
+ "text": {
49
+ "path": "text/rp_012_book_slot_v0.md"
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "id": 8,
55
+ "name": "rp_016_bottle_shelf_v0",
56
+ "language": "place the bottle in the rack with its cap facing the opening and its body parallel to the long sides",
57
+ "label_zh": "竖瓶放倒并定向放入托架",
58
+ "num_samples": 1397,
59
+ "control_hz": 20,
60
+ "files": {
61
+ "dataset": {
62
+ "path": "dataset/rp_016_bottle_shelf_v0_demo.hdf5"
63
+ },
64
+ "video": {
65
+ "path": "video/rp_016_bottle_shelf_v0_replay.mp4"
66
+ },
67
+ "actions": {
68
+ "path": "actions/rp_016_bottle_shelf_v0_actions.npy"
69
+ },
70
+ "measured_trajectory_csv": {
71
+ "path": "trajectory/rp_016_bottle_shelf_v0_eef.csv"
72
+ },
73
+ "text": {
74
+ "path": "text/rp_016_bottle_shelf_v0.md"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "id": 26,
80
+ "name": "rp_050_mango_safety_yaw90_layout0",
81
+ "language": "pick up the mango half and place it on the green pad without knocking over or moving the vase and nearby cup",
82
+ "label_zh": "保护易倒物体的半块芒果抓取与绕行",
83
+ "num_samples": 935,
84
+ "control_hz": 20,
85
+ "files": {
86
+ "dataset": {
87
+ "path": "dataset/rp_050_mango_safety_yaw90_layout0_demo.hdf5"
88
+ },
89
+ "video": {
90
+ "path": "video/rp_050_mango_safety_yaw90_layout0_replay.mp4"
91
+ },
92
+ "actions": {
93
+ "path": "actions/rp_050_mango_safety_yaw90_layout0_actions.npy"
94
+ },
95
+ "measured_trajectory_csv": {
96
+ "path": "trajectory/rp_050_mango_safety_yaw90_layout0_eef.csv"
97
+ },
98
+ "text": {
99
+ "path": "text/rp_050_mango_safety_yaw90_layout0.md"
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "id": 28,
105
+ "name": "rp3_028_cream_cheese_drawer_v0",
106
+ "language": "put the cream cheese package in the top drawer organizer and close the drawer",
107
+ "label_zh": "打开上层抽屉收纳奶油奶酪盒后关闭",
108
+ "num_samples": 2763,
109
+ "control_hz": 20,
110
+ "files": {
111
+ "dataset": {
112
+ "path": "dataset/rp3_028_cream_cheese_drawer_v0_demo.hdf5"
113
+ },
114
+ "video": {
115
+ "path": "video/rp3_028_cream_cheese_drawer_v0_replay.mp4"
116
+ },
117
+ "actions": {
118
+ "path": "actions/rp3_028_cream_cheese_drawer_v0_actions.npy"
119
+ },
120
+ "measured_trajectory_csv": {
121
+ "path": "trajectory/rp3_028_cream_cheese_drawer_v0_eef.csv"
122
+ },
123
+ "text": {
124
+ "path": "text/rp3_028_cream_cheese_drawer_v0.md"
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "id": 34,
130
+ "name": "rp3_034_two_mugs_v0",
131
+ "language": "put the yellow and white mug in the storage box with its handle facing the back, put the white mug beside it with its handle facing the opening, and close the door",
132
+ "label_zh": "双杯把手朝相反方向入柜并关门",
133
+ "num_samples": 2654,
134
+ "control_hz": 20,
135
+ "files": {
136
+ "dataset": {
137
+ "path": "dataset/rp3_034_two_mugs_v0_demo.hdf5"
138
+ },
139
+ "video": {
140
+ "path": "video/rp3_034_two_mugs_v0_replay.mp4"
141
+ },
142
+ "actions": {
143
+ "path": "actions/rp3_034_two_mugs_v0_actions.npy"
144
+ },
145
+ "measured_trajectory_csv": {
146
+ "path": "trajectory/rp3_034_two_mugs_v0_eef.csv"
147
+ },
148
+ "text": {
149
+ "path": "text/rp3_034_two_mugs_v0.md"
150
+ }
151
+ }
152
+ }
153
+ ]
154
+ }
geomotion/resources/expert_reference/replay_experts.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ """Standalone compatibility entry; use geomotion replay-experts."""
2
+ import sys
3
+ from geomotion.cli import main
4
+ if __name__ == "__main__":
5
+ raise SystemExit(main(["replay-experts", *sys.argv[1:]]))
geomotion/resources/expert_reference/text/rp3_028_cream_cheese_drawer_v0.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 28:打开上层抽屉收纳奶油奶酪盒后关闭 · 布局 B 专家
2
+
3
+ 任务指令:`put the cream cheese package in the top drawer organizer and close the drawer`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **2763 步 / 138.15 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 操作抽屉(需要时先打开);抓取并调整物体姿态;对齐收纳槽并放入、松手;退出后关闭抽屉并等待稳定。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–106 | 0.00–5.35 | 抽屉操作与收纳 | -0.2237, 0.1523, 1.2036 | 张开 |
16
+ | 107–152 | 5.35–7.65 | 抽屉操作与收纳 | -0.1458, 0.1530, 1.0859 | 张开 |
17
+ | 153–174 | 7.65–8.75 | 抽屉操作与收纳 | -0.0859, 0.1528, 1.0838 | 张开 |
18
+ | 175–214 | 8.75–10.75 | 抽屉操作与收纳 | -0.0836, 0.1527, 1.0844 | 闭合 |
19
+ | 215–266 | 10.75–13.35 | 抽屉操作与收纳 | -0.2363, 0.1525, 1.0849 | 闭合 |
20
+ | 267–301 | 13.35–15.10 | 抽屉操作与收纳 | -0.2364, 0.1526, 1.0849 | 张开 |
21
+ | 302–461 | 15.10–23.10 | 抽屉操作与收纳 | -0.3283, 0.1700, 1.2274 | 张开 |
22
+ | 462–570 | 23.10–28.55 | 抽屉操作与收纳 | -0.2001, -0.1189, 1.3199 | 张开 |
23
+ | 571–646 | 28.55–32.35 | 抓取与提起 | -0.1882, -0.2252, 1.1221 | 张开 |
24
+ | 647–806 | 32.35–40.35 | 抓取与提起 | -0.1852, -0.2279, 0.9490 | 张开 |
25
+ | 807–841 | 40.35–42.10 | 抓取与提起 | -0.1849, -0.2279, 0.9490 | 闭合 |
26
+ | 842–900 | 42.10–45.05 | 抓取与提起 | -0.1889, -0.2256, 1.1176 | 闭合 |
27
+ | 901–981 | 45.05–49.10 | 抽屉操作与收纳 | -0.1896, -0.2100, 1.0180 | 闭合 |
28
+ | 982–1021 | 49.10–51.10 | 抽屉操作与收纳 | -0.1891, -0.2089, 1.0194 | 张开 |
29
+ | 1022–1074 | 51.10–53.75 | 抽屉操作与收纳 | -0.1892, -0.2087, 1.1774 | 张开 |
30
+ | 1075–1177 | 53.75–58.90 | 抽屉操作与收纳 | -0.2002, -0.1190, 1.3197 | 张开 |
31
+ | 1178–1254 | 58.90–62.75 | 抓取与提起 | -0.1873, -0.2036, 1.1203 | 张开 |
32
+ | 1255–1321 | 62.75–66.10 | 抓取与提起 | -0.1879, -0.2031, 0.9143 | 张开 |
33
+ | 1322–1351 | 66.10–67.60 | 抓取与提起 | -0.1878, -0.2033, 0.9117 | 闭合 |
34
+ | 1352–1422 | 67.60–71.15 | 抓取与提起 | -0.1883, -0.2025, 1.1173 | 闭合 |
35
+ | 1423–1551 | 71.15–77.60 | 抽屉操作与收纳 | -0.1141, 0.1451, 1.2494 | 闭合 |
36
+ | 1552–1571 | 77.60–78.60 | 闭环对齐物体 | -0.1118, 0.1461, 1.1903 | 闭合 |
37
+ | 1572–1591 | 78.60–79.60 | 闭环对齐物体 | -0.1139, 0.1456, 1.1245 | 闭合 |
38
+ | 1592–1606 | 79.60–80.35 | 闭环对齐物体 | -0.1126, 0.1462, 1.1003 | 闭合 |
39
+ | 1607–1621 | 80.35–81.10 | 闭环对齐物体 | -0.1123, 0.1464, 1.1003 | 闭合 |
40
+ | 1622–1636 | 81.10–81.85 | 闭环对齐物体 | -0.1123, 0.1466, 1.1003 | 闭合 |
41
+ | 1637–1651 | 81.85–82.60 | 闭环对齐物体 | -0.1123, 0.1467, 1.1003 | 闭合 |
42
+ | 1652–1666 | 82.60–83.35 | 闭环对齐物体 | -0.1123, 0.1469, 1.1003 | 闭合 |
43
+ | 1667–1681 | 83.35–84.10 | 闭环对齐物体 | -0.1123, 0.1470, 1.1003 | 闭合 |
44
+ | 1682–1696 | 84.10–84.85 | 闭环对齐物体 | -0.1123, 0.1472, 1.1003 | 闭合 |
45
+ | 1697–1711 | 84.85–85.60 | 闭环对齐物体 | -0.1124, 0.1473, 1.1003 | 闭合 |
46
+ | 1712–1726 | 85.60–86.35 | 闭环对齐物体 | -0.1124, 0.1474, 1.1003 | 闭合 |
47
+ | 1727–1741 | 86.35–87.10 | 闭环对齐物体 | -0.1124, 0.1475, 1.1003 | 闭合 |
48
+ | 1742–1756 | 87.10–87.85 | 闭环对齐物体 | -0.1124, 0.1476, 1.1003 | 闭合 |
49
+ | 1757–1771 | 87.85–88.60 | 闭环对齐物体 | -0.1124, 0.1477, 1.1003 | 闭合 |
50
+ | 1772–1786 | 88.60–89.35 | 闭环对齐物体 | -0.1124, 0.1478, 1.1003 | 闭合 |
51
+ | 1787–1801 | 89.35–90.10 | 闭环对齐物体 | -0.1124, 0.1479, 1.1003 | 闭合 |
52
+ | 1802–1816 | 90.10–90.85 | 闭环对齐物体 | -0.1124, 0.1479, 1.1003 | 闭合 |
53
+ | 1817–1831 | 90.85–91.60 | 闭环对齐物体 | -0.1125, 0.1480, 1.1003 | 闭合 |
54
+ | 1832–1846 | 91.60–92.35 | 闭环对齐物体 | -0.1125, 0.1481, 1.1003 | 闭合 |
55
+ | 1847–1861 | 92.35–93.10 | 闭环对齐物体 | -0.1125, 0.1482, 1.1003 | 闭合 |
56
+ | 1862–1876 | 93.10–93.85 | 闭环对齐物体 | -0.1125, 0.1482, 1.1003 | 闭合 |
57
+ | 1877–1891 | 93.85–94.60 | 闭环对齐物体 | -0.1125, 0.1482, 1.1003 | 闭合 |
58
+ | 1892–1906 | 94.60–95.35 | 闭环对齐物体 | -0.1125, 0.1483, 1.1003 | 闭合 |
59
+ | 1907–1921 | 95.35–96.10 | 闭环对齐物体 | -0.1125, 0.1483, 1.1003 | 闭合 |
60
+ | 1922–1956 | 96.10–97.85 | 抽屉操作与收纳 | -0.1125, 0.1482, 1.1003 | 张开 |
61
+ | 1957–2019 | 97.85–101.00 | 抽屉操作与收纳 | -0.1129, 0.1483, 1.2878 | 张开 |
62
+ | 2020–2075 | 101.00–103.80 | 抽屉操作与收纳 | -0.2710, 0.1523, 1.2638 | 闭合 |
63
+ | 2076–2138 | 103.80–106.95 | 抽屉操作与收纳 | -0.2720, 0.1527, 1.0957 | 闭合 |
64
+ | 2139–2588 | 106.95–129.45 | 抽屉操作与收纳 | -0.0852, 0.1500, 1.0673 | 闭合 |
65
+ | 2589–2635 | 129.45–131.80 | 抽屉操作与收纳 | -0.2125, 0.1501, 1.0882 | 闭合 |
66
+ | 2636–2722 | 131.80–136.15 | 抽屉操作与收纳 | -0.2132, 0.1501, 1.2857 | 张开 |
67
+ | 2723–2762 | 136.15–138.15 | 释放后等待稳定 | -0.2131, 0.1500, 1.2859 | 张开 |
68
+
69
+ ## 对应数据
70
+
71
+ - [HDF5](../dataset/rp3_028_cream_cheese_drawer_v0_demo.hdf5)
72
+ - [7 维动作 NPY](../actions/rp3_028_cream_cheese_drawer_v0_actions.npy)
73
+ - [实测末端与关节轨迹 CSV](../trajectory/rp3_028_cream_cheese_drawer_v0_eef.csv)
74
+ - [双视角回放 MP4](../video/rp3_028_cream_cheese_drawer_v0_replay.mp4)
75
+
76
+
77
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/text/rp3_034_two_mugs_v0.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 34:双杯把手朝相反方向入柜并关门 · 布局 B 专家
2
+
3
+ 任务指令:`put the yellow and white mug in the storage box with its handle facing the back, put the white mug beside it with its handle facing the opening, and close the door`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **2654 步 / 132.70 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 抓取杯子并提起;对齐对应杯把目标方向;逐个放入柜内并释放;退出后关闭柜门。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–74 | 0.00–3.75 | 杯子定向收纳 | -0.2004, -0.1386, 1.3482 | 张开 |
16
+ | 75–175 | 3.75–8.80 | 抓取与提起 | -0.2480, -0.3441, 1.1215 | 张开 |
17
+ | 176–225 | 8.80–11.30 | 抓取与提起 | -0.2483, -0.3459, 0.9706 | 张开 |
18
+ | 226–255 | 11.30–12.80 | 抓取与提起 | -0.2480, -0.3462, 0.9690 | 闭合 |
19
+ | 256–309 | 12.80–15.50 | 抓取与提起 | -0.2488, -0.3451, 1.1177 | 闭合 |
20
+ | 310–394 | 15.50–19.75 | 杯子定向收纳 | -0.2494, -0.3447, 1.3551 | 闭合 |
21
+ | 395–554 | 19.75–27.75 | 放置与释放 | -0.0044, 0.0516, 1.1684 | 闭合 |
22
+ | 555–610 | 27.75–30.55 | 放置与释放 | -0.0012, 0.0554, 0.9891 | 闭合 |
23
+ | 611–640 | 30.55–32.05 | 放置与释放 | -0.0008, 0.0553, 0.9891 | 张开 |
24
+ | 641–700 | 32.05–35.05 | 放置与释放 | -0.0004, 0.0561, 1.1679 | 张开 |
25
+ | 701–808 | 35.05–40.45 | 杯子定向收纳 | -0.1985, -0.1384, 1.3487 | 张开 |
26
+ | 809–921 | 40.45–46.10 | 抓取与提起 | 0.0393, -0.2527, 1.1202 | 张开 |
27
+ | 922–974 | 46.10–48.75 | 抓取与提起 | 0.0419, -0.2537, 0.9677 | 张开 |
28
+ | 975–1004 | 48.75–50.25 | 抓取与提起 | 0.0420, -0.2537, 0.9657 | 闭合 |
29
+ | 1005–1061 | 50.25–53.10 | 抓取与提起 | 0.0408, -0.2536, 1.1177 | 闭合 |
30
+ | 1062–1281 | 53.10–64.10 | 杯子定向收纳 | 0.0378, -0.2528, 1.3527 | 闭合 |
31
+ | 1282–1441 | 64.10–72.10 | 放置与释放 | 0.0109, 0.1691, 1.1853 | 闭合 |
32
+ | 1442–1501 | 72.10–75.10 | 放置与释放 | -0.0021, 0.2025, 0.9895 | 闭合 |
33
+ | 1502–1531 | 75.10–76.60 | 放置与释放 | -0.0016, 0.2030, 0.9888 | 张开 |
34
+ | 1532–1591 | 76.60–79.60 | 放置与释放 | -0.0016, 0.2039, 1.1677 | 张开 |
35
+ | 1592–1751 | 79.60–87.60 | 关闭柜门 | -0.3865, -0.0866, 1.2191 | 闭合 |
36
+ | 1752–1911 | 87.60–95.60 | 关闭柜门 | -0.3751, -0.1326, 1.0866 | 闭合 |
37
+ | 1912–1936 | 95.60–96.85 | 关闭柜门 | -0.3749, -0.1298, 1.0869 | 闭合 |
38
+ | 1937–1961 | 96.85–98.10 | 关闭柜门 | -0.3757, -0.1241, 1.0870 | 闭合 |
39
+ | 1962–1986 | 98.10–99.35 | 关闭柜门 | -0.3788, -0.1100, 1.0869 | 闭合 |
40
+ | 1987–2011 | 99.35–100.60 | 关闭柜门 | -0.3821, -0.0887, 1.0868 | 闭合 |
41
+ | 2012–2036 | 100.60–101.85 | 关闭柜门 | -0.3837, -0.0604, 1.0866 | 闭合 |
42
+ | 2037–2061 | 101.85–103.10 | 关闭柜门 | -0.3806, -0.0254, 1.0866 | 闭合 |
43
+ | 2062–2086 | 103.10–104.35 | 关闭柜门 | -0.3697, 0.0160, 1.0868 | 闭合 |
44
+ | 2087–2111 | 104.35–105.60 | 关闭柜门 | -0.3542, 0.0510, 1.0871 | 闭合 |
45
+ | 2112–2136 | 105.60–106.85 | 关闭柜门 | -0.3393, 0.0746, 1.0873 | 闭合 |
46
+ | 2137–2161 | 106.85–108.10 | 关闭柜门 | -0.3268, 0.0906, 1.0873 | 闭合 |
47
+ | 2162–2186 | 108.10–109.35 | 关闭柜门 | -0.3160, 0.1026, 1.0873 | 闭合 |
48
+ | 2187–2211 | 109.35–110.60 | 关闭柜门 | -0.3056, 0.1124, 1.0873 | 闭合 |
49
+ | 2212–2236 | 110.60–111.85 | 关闭柜门 | -0.2949, 0.1212, 1.0873 | 闭合 |
50
+ | 2237–2261 | 111.85–113.10 | 关闭柜门 | -0.2839, 0.1292, 1.0873 | 闭合 |
51
+ | 2262–2286 | 113.10–114.35 | 关闭柜门 | -0.2724, 0.1364, 1.0872 | 闭合 |
52
+ | 2287–2311 | 114.35–115.60 | 关闭柜门 | -0.2606, 0.1428, 1.0872 | 闭合 |
53
+ | 2312–2336 | 115.60–116.85 | 关闭柜门 | -0.2484, 0.1484, 1.0871 | 闭合 |
54
+ | 2337–2361 | 116.85–118.10 | 关闭柜门 | -0.2360, 0.1532, 1.0871 | 闭合 |
55
+ | 2362–2386 | 118.10–119.35 | 关闭柜门 | -0.2199, 0.1576, 1.0871 | 闭合 |
56
+ | 2387–2411 | 119.35–120.60 | 关闭柜门 | -0.2040, 0.1610, 1.0871 | 闭合 |
57
+ | 2412–2436 | 120.60–121.85 | 关闭柜门 | -0.1892, 0.1631, 1.0871 | 闭合 |
58
+ | 2437–2461 | 121.85–123.10 | 关闭柜门 | -0.1868, 0.1640, 1.0868 | 闭合 |
59
+ | 2462–2486 | 123.10–124.35 | 关闭柜门 | -0.1858, 0.1649, 1.0868 | 闭合 |
60
+ | 2487–2511 | 124.35–125.60 | 关闭柜门 | -0.1831, 0.1658, 1.0869 | 闭合 |
61
+ | 2512–2546 | 125.60–127.35 | 关闭柜门 | -0.2812, 0.1657, 1.0868 | 闭合 |
62
+ | 2547–2613 | 127.35–130.70 | 关闭柜门 | -0.2816, 0.1659, 1.2850 | 张开 |
63
+ | 2614–2653 | 130.70–132.70 | 释放后等待稳定 | -0.2813, 0.1659, 1.2853 | 张开 |
64
+
65
+ ## 对应数据
66
+
67
+ - [HDF5](../dataset/rp3_034_two_mugs_v0_demo.hdf5)
68
+ - [7 维动作 NPY](../actions/rp3_034_two_mugs_v0_actions.npy)
69
+ - [实测末端与关节轨迹 CSV](../trajectory/rp3_034_two_mugs_v0_eef.csv)
70
+ - [双视角回放 MP4](../video/rp3_034_two_mugs_v0_replay.mp4)
71
+
72
+
73
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/text/rp_008_bar_gate_v0.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 00:把蓝色长条放到绿色垫子上 · 布局 B 专家
2
+
3
+ 任务指令:`put the blue bar on the green pad`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **1950 步 / 97.50 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 接近长条并夹起;调整朝向后暂放、从端部换抓;穿过狭口;在绿色垫子上释放并退出。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–76 | 0.00–3.85 | 抓取与提起 | -0.1615, 0.1083, 1.1204 | 张开 |
16
+ | 77–107 | 3.85–5.40 | 抓取与提起 | -0.1619, 0.1081, 1.0286 | 张开 |
17
+ | 108–137 | 5.40–6.90 | 抓取与提起 | -0.1621, 0.1083, 1.0260 | 闭合 |
18
+ | 138–170 | 6.90–8.55 | 抓取与提起 | -0.1629, 0.1078, 1.1175 | 闭合 |
19
+ | 171–247 | 8.55–12.40 | 暂放/换抓/穿过狭口 | -0.1510, 0.1194, 1.2271 | 闭合 |
20
+ | 248–308 | 12.40–15.45 | 暂放/换抓/穿过狭口 | -0.1510, 0.1197, 1.0342 | 闭合 |
21
+ | 309–343 | 15.45–17.20 | 暂放/换抓/穿过狭口 | -0.1507, 0.1200, 1.0318 | 张开 |
22
+ | 344–401 | 17.20–20.10 | 暂放/换抓/穿过狭口 | -0.1508, 0.1199, 1.2054 | 张开 |
23
+ | 402–651 | 20.10–32.60 | 暂放/换抓/穿过狭口 | -0.3007, 0.1240, 1.2384 | 张开 |
24
+ | 652–730 | 32.60–36.55 | 暂放/换抓/穿过狭口 | -0.3059, 0.1201, 1.0302 | 张开 |
25
+ | 731–759 | 36.55–38.00 | 暂放/换抓/穿过狭口 | -0.2382, 0.1196, 1.0274 | 张开 |
26
+ | 760–799 | 38.00–40.00 | 暂放/换抓/穿过狭口 | -0.2358, 0.1195, 1.0274 | 闭合 |
27
+ | 800–852 | 40.00–42.65 | 暂放/换抓/穿过狭口 | -0.2358, 0.1194, 1.1664 | 闭合 |
28
+ | 853–865 | 42.65–43.30 | 暂放/换抓/穿过狭口 | -0.2055, 0.1189, 1.1570 | 闭合 |
29
+ | 866–918 | 43.30–45.95 | 暂放/换抓/穿过狭口 | -0.0576, 0.1194, 1.1532 | 闭合 |
30
+ | 919–984 | 45.95–49.25 | 暂放/换抓/穿过狭口 | 0.1331, 0.1389, 1.1534 | 闭合 |
31
+ | 985–1028 | 49.25–51.45 | 暂放/换抓/穿过狭口 | 0.1341, 0.1422, 1.0470 | 闭合 |
32
+ | 1029–1029 | 51.45–51.50 | 暂放/换抓/穿过狭口 | 0.1342, 0.1421, 1.0471 | 张开 |
33
+ | 1030–1209 | 51.50–60.50 | 暂放/换抓/穿过狭口 | 0.0941, 0.1426, 1.0611 | 张开 |
34
+ | 1210–1409 | 60.50–70.50 | 暂放/换抓/穿过狭口 | 0.0953, 0.1431, 1.0594 | 张开 |
35
+ | 1410–1659 | 70.50–83.00 | 暂放/换抓/穿过狭口 | 0.0936, 0.1421, 1.0632 | 张开 |
36
+ | 1660–1909 | 83.00–95.50 | 暂放/换抓/穿过狭口 | 0.0460, 0.1189, 1.1787 | 张开 |
37
+ | 1910–1949 | 95.50–97.50 | 释放后等待稳定 | 0.0459, 0.1188, 1.1786 | 张开 |
38
+
39
+ ## 对应数据
40
+
41
+ - [HDF5](../dataset/rp_008_bar_gate_v0_demo.hdf5)
42
+ - [7 维动作 NPY](../actions/rp_008_bar_gate_v0_actions.npy)
43
+ - [实测末端与关节轨迹 CSV](../trajectory/rp_008_bar_gate_v0_eef.csv)
44
+ - [双视角回放 MP4](../video/rp_008_bar_gate_v0_replay.mp4)
45
+
46
+
47
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/text/rp_012_book_slot_v0.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 04:把书本直立放入收纳槽 · 布局 B 专家
2
+
3
+ 任务指令:`put the book upright in the organizer`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **589 步 / 29.45 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 对齐书本抓取方向并提起;翻转为直立姿态;闭环对齐收纳槽;降低、释放并退出。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–69 | 0.00–3.50 | 抓取与提起 | -0.1933, -0.2043, 1.1204 | 张开 |
16
+ | 70–136 | 3.50–6.85 | 抓取与提起 | -0.1932, -0.2060, 0.9154 | 张开 |
17
+ | 137–166 | 6.85–8.35 | 抓取与提起 | -0.1930, -0.2070, 0.9137 | 闭合 |
18
+ | 167–236 | 8.35–11.85 | 抓取与提起 | -0.1940, -0.2056, 1.1172 | 闭合 |
19
+ | 237–354 | 11.85–17.75 | 翻转并入槽 | 0.0197, 0.0644, 1.1801 | 闭合 |
20
+ | 355–374 | 17.75–18.75 | 闭环对齐物体 | 0.0212, 0.0660, 1.1186 | 闭合 |
21
+ | 375–389 | 18.75–19.50 | 闭环对齐物体 | 0.0248, 0.0634, 1.1005 | 闭合 |
22
+ | 390–404 | 19.50–20.25 | 闭环对齐物体 | 0.0240, 0.0644, 1.1010 | 闭合 |
23
+ | 405–424 | 20.25–21.25 | 闭环对齐物体 | 0.0213, 0.0663, 1.0392 | 闭合 |
24
+ | 425–439 | 21.25–22.00 | 闭环对齐物体 | 0.0246, 0.0633, 1.0044 | 闭合 |
25
+ | 440–454 | 22.00–22.75 | 闭环对齐物体 | 0.0242, 0.0642, 1.0050 | 闭合 |
26
+ | 455–489 | 22.75–24.50 | 翻转并入槽 | 0.0239, 0.0644, 1.0050 | 张开 |
27
+ | 490–548 | 24.50–27.45 | 翻转并入槽 | 0.0241, 0.0644, 1.1828 | 张开 |
28
+ | 549–588 | 27.45–29.45 | 释放后等待稳定 | 0.0239, 0.0646, 1.1828 | 张开 |
29
+
30
+ ## 对应数据
31
+
32
+ - [HDF5](../dataset/rp_012_book_slot_v0_demo.hdf5)
33
+ - [7 维动作 NPY](../actions/rp_012_book_slot_v0_actions.npy)
34
+ - [实测末端与关节轨迹 CSV](../trajectory/rp_012_book_slot_v0_eef.csv)
35
+ - [双视角回放 MP4](../video/rp_012_book_slot_v0_replay.mp4)
36
+
37
+
38
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/text/rp_016_bottle_shelf_v0.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 08:竖瓶放倒并定向放入托架 · 布局 B 专家
2
+
3
+ 任务指令:`place the bottle in the rack with its cap facing the opening and its body parallel to the long sides`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **1397 步 / 69.85 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 夹起竖立瓶子;在空区将瓶子放倒;重新抓取并校正瓶盖方向;放入托架、释放并退出。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–83 | 0.00–4.20 | 抓取与提起 | -0.1470, -0.2161, 1.1207 | 张开 |
16
+ | 84–113 | 4.20–5.70 | 抓取与提起 | -0.1478, -0.2161, 1.0339 | 张开 |
17
+ | 114–143 | 5.70–7.20 | 抓取与提起 | -0.1480, -0.2161, 1.0319 | 闭合 |
18
+ | 144–175 | 7.20–8.80 | 抓取与提起 | -0.1490, -0.2156, 1.1177 | 闭合 |
19
+ | 176–425 | 8.80–21.30 | 瓶子放倒与定向 | -0.2923, -0.1429, 1.0177 | 闭合 |
20
+ | 426–465 | 21.30–23.30 | 瓶子放倒与定向 | -0.2920, -0.1418, 1.0177 | 张开 |
21
+ | 466–665 | 23.30–33.30 | 瓶子放倒与定向 | -0.3212, -0.0598, 1.0370 | 张开 |
22
+ | 666–705 | 33.30–35.30 | 释放后等待稳定 | -0.3203, -0.0578, 1.0363 | 张开 |
23
+ | 706–826 | 35.30–41.35 | 瓶子放倒与定向 | -0.1807, -0.1212, 1.2976 | 张开 |
24
+ | 827–893 | 41.35–44.70 | 抓取与提起 | -0.2492, -0.1231, 1.1217 | 张开 |
25
+ | 894–955 | 44.70–47.80 | 抓取与提起 | -0.2496, -0.1230, 0.9305 | 张开 |
26
+ | 956–985 | 47.80–49.30 | 抓取与提起 | -0.2509, -0.1234, 0.9272 | 闭合 |
27
+ | 986–1053 | 49.30–52.70 | 抓取与提起 | -0.2509, -0.1232, 1.1176 | 闭合 |
28
+ | 1054–1175 | 52.70–58.80 | 放置与释放 | -0.0033, 0.1180, 1.1684 | 闭合 |
29
+ | 1176–1250 | 58.80–62.55 | 放置与释放 | 0.0004, 0.1193, 0.9410 | 闭合 |
30
+ | 1251–1280 | 62.55–64.05 | 放置与释放 | -0.0012, 0.1192, 0.9390 | 张开 |
31
+ | 1281–1356 | 64.05–67.85 | 放置与释放 | -0.0019, 0.1194, 1.1681 | 张开 |
32
+ | 1357–1396 | 67.85–69.85 | 释放后等待稳定 | -0.0015, 0.1195, 1.1684 | 张开 |
33
+
34
+ ## 对应数据
35
+
36
+ - [HDF5](../dataset/rp_016_bottle_shelf_v0_demo.hdf5)
37
+ - [7 维动作 NPY](../actions/rp_016_bottle_shelf_v0_actions.npy)
38
+ - [实测末端与关节轨迹 CSV](../trajectory/rp_016_bottle_shelf_v0_eef.csv)
39
+ - [双视角回放 MP4](../video/rp_016_bottle_shelf_v0_replay.mp4)
40
+
41
+
42
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/text/rp_050_mango_safety_yaw90_layout0.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 任务 26:保护易倒物体的半块芒果抓取与绕行 · 布局 B 专家
2
+
3
+ 任务指令:`pick up the mango half and place it on the green pad without knocking over or moving the vase and nearby cup`
4
+
5
+ 本轨迹从布局 B 的固定初态实际执行,独立复位回放和渲染回放均成功。共 **935 步 / 46.75 秒**,动作频率 20 Hz。
6
+
7
+ ## 专家过程
8
+
9
+ 抓取半块芒果;从保护物体侧边绕行搬运;在绿色垫子上释放;退出并检查保护物体的全程安全记录。
10
+
11
+ 下面列出本次实际执行的关键点;末端位置与夹爪命令对应每段结束时的记录。完整逐步实测轨迹见 CSV,动作、仿真状态及双视角观测见 HDF5。CSV 的末端/关节数据位于动作前,成功标记位于动作后;关键点表的末端位置位于该段动作结束后。
12
+
13
+ | 动作步范围(0 起) | 秒 | 操作 | 实测末端 XYZ(m) | 夹爪命令 |
14
+ | --- | --- | --- | --- | --- |
15
+ | 0–75 | 0.00–3.80 | 抓取与提起 | -0.1370, -0.1864, 1.1208 | 张开 |
16
+ | 76–138 | 3.80–6.95 | 抓取与提起 | -0.1381, -0.1859, 0.9289 | 张开 |
17
+ | 139–168 | 6.95–8.45 | 抓取与提起 | -0.1384, -0.1862, 0.9266 | 闭合 |
18
+ | 169–236 | 8.45–11.85 | 抓取与提起 | -0.1389, -0.1856, 1.1179 | 闭合 |
19
+ | 237–294 | 11.85–14.75 | 绕行搬运 | -0.2690, -0.0819, 1.1717 | 闭合 |
20
+ | 295–400 | 14.75–20.05 | 绕行搬运 | -0.2709, 0.2383, 1.1728 | 闭合 |
21
+ | 401–650 | 20.05–32.55 | 绕行搬运 | 0.0949, 0.2783, 1.1676 | 闭合 |
22
+ | 651–710 | 32.55–35.55 | 放置与释放 | 0.1023, 0.2001, 1.1717 | 闭合 |
23
+ | 711–783 | 35.55–39.20 | 放置与释放 | 0.0978, 0.1995, 0.9352 | 闭合 |
24
+ | 784–813 | 39.20–40.70 | 放置与释放 | 0.1011, 0.2002, 0.9380 | 张开 |
25
+ | 814–894 | 40.70–44.75 | 放置与释放 | 0.0982, 0.2001, 1.1678 | 张开 |
26
+ | 895–934 | 44.75–46.75 | 释放后等待稳定 | 0.0988, 0.2002, 1.1683 | 张开 |
27
+
28
+ ## 对应数据
29
+
30
+ - [HDF5](../dataset/rp_050_mango_safety_yaw90_layout0_demo.hdf5)
31
+ - [7 维动作 NPY](../actions/rp_050_mango_safety_yaw90_layout0_actions.npy)
32
+ - [实测末端与关节轨迹 CSV](../trajectory/rp_050_mango_safety_yaw90_layout0_eef.csv)
33
+ - [双视角回放 MP4](../video/rp_050_mango_safety_yaw90_layout0_replay.mp4)
34
+
35
+
36
+ 安全检查:保护物体未发生倾倒或下落,安全违规记录为空。
37
+
38
+ 控制来源:`privileged_scripted_waypoints_osc`。
geomotion/resources/expert_reference/trajectory/rp3_028_cream_cheese_drawer_v0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/trajectory/rp3_034_two_mugs_v0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/trajectory/rp_008_bar_gate_v0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/trajectory/rp_012_book_slot_v0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/trajectory/rp_016_bottle_shelf_v0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/trajectory/rp_050_mango_safety_yaw90_layout0_eef.csv ADDED
The diff for this file is too large to render. See raw diff
 
geomotion/resources/expert_reference/video/rp3_028_cream_cheese_drawer_v0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2035eb23a73f2b29c819df9ab3fac399b29881bf5f36c4c28f154b8b8697c97
3
+ size 649472
geomotion/resources/expert_reference/video/rp3_034_two_mugs_v0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e4f06f5fd00a3dfaf6285823b26aefa6bd41e17cc1fa628d3d8f0a45017e512
3
+ size 820438
geomotion/resources/expert_reference/video/rp_008_bar_gate_v0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:832b140412e45e2d8547a78de389db2cdd0dfff8b220cd140a2fadc88597e0b3
3
+ size 409495
geomotion/resources/expert_reference/video/rp_012_book_slot_v0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7219e37fa23af7ca50f4d4ea3f57c0549401cabb65d03bf1647a017716ae9ac0
3
+ size 196619
geomotion/resources/expert_reference/video/rp_016_bottle_shelf_v0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ceb420c20aacc3bfe94081ad95dfb00d93f59bf0e59dcc106f55d2fa913857e
3
+ size 403715
geomotion/resources/expert_reference/video/rp_050_mango_safety_yaw90_layout0_replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd4c116775848ca93910d78f509b7c7b7032a72b62c44f8a2c20b45b0de911f6
3
+ size 257048
geomotion/resources/task_families.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "panel": "a",
4
+ "name": "Narrow-Passage Transport",
5
+ "name_zh": "长条穿窄通道",
6
+ "task_ids": [
7
+ 0,
8
+ 1,
9
+ 2,
10
+ 3
11
+ ],
12
+ "count": 4
13
+ },
14
+ {
15
+ "panel": "b",
16
+ "name": "Upright Book Placement",
17
+ "name_zh": "书本直立入槽",
18
+ "task_ids": [
19
+ 4,
20
+ 5,
21
+ 6,
22
+ 7
23
+ ],
24
+ "count": 4
25
+ },
26
+ {
27
+ "panel": "c",
28
+ "name": "Oriented Bottle Placement",
29
+ "name_zh": "瓶子定向入架",
30
+ "task_ids": [
31
+ 8,
32
+ 9,
33
+ 10,
34
+ 11
35
+ ],
36
+ "count": 4
37
+ },
38
+ {
39
+ "panel": "d",
40
+ "name": "Plate Pushing Around Obstacles",
41
+ "name_zh": "盘子绕障推移",
42
+ "task_ids": [
43
+ 12,
44
+ 13,
45
+ 14,
46
+ 15
47
+ ],
48
+ "count": 4
49
+ },
50
+ {
51
+ "panel": "e",
52
+ "name": "Book Storage in a Drawer",
53
+ "name_zh": "书本入抽屉并关闭",
54
+ "task_ids": [
55
+ 16,
56
+ 17,
57
+ 18,
58
+ 19
59
+ ],
60
+ "count": 4
61
+ },
62
+ {
63
+ "panel": "f",
64
+ "name": "Single-Mug Alignment and Closure",
65
+ "name_zh": "单杯定向入箱并关门",
66
+ "task_ids": [
67
+ 20,
68
+ 21,
69
+ 22,
70
+ 23
71
+ ],
72
+ "count": 4
73
+ },
74
+ {
75
+ "panel": "g",
76
+ "name": "Mango Transport and Avoidance",
77
+ "name_zh": "芒果搬运与避碰",
78
+ "task_ids": [
79
+ 24,
80
+ 25,
81
+ 26,
82
+ 27
83
+ ],
84
+ "count": 4
85
+ },
86
+ {
87
+ "panel": "h",
88
+ "name": "Package Storage and Drawer Closure",
89
+ "name_zh": "食品盒入抽屉并关闭",
90
+ "task_ids": [
91
+ 28,
92
+ 29,
93
+ 30,
94
+ 31,
95
+ 32,
96
+ 33
97
+ ],
98
+ "count": 6
99
+ },
100
+ {
101
+ "panel": "i",
102
+ "name": "Dual-Mug Alignment and Closure",
103
+ "name_zh": "双杯定向入箱并关门",
104
+ "task_ids": [
105
+ 34,
106
+ 35
107
+ ],
108
+ "count": 2
109
+ }
110
+ ]
geomotion/runtime.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Resource and renderer setup, before LIBERO or OpenGL is imported."""
2
+ import hashlib
3
+ import json
4
+ import os
5
+ from pathlib import Path
6
+ import sys
7
+ import tempfile
8
+
9
+ ROOT = Path(__file__).resolve().parent.parent
10
+ RESOURCES = Path(__file__).resolve().parent / "resources"
11
+
12
+
13
+ def configure(*, renderer=None, config_dir=None):
14
+ selected = renderer or os.environ.get("MUJOCO_GL", "osmesa")
15
+ if selected not in ("osmesa", "egl"):
16
+ raise ValueError("renderer must be osmesa or egl")
17
+ if "mujoco" in sys.modules and os.environ.get("MUJOCO_GL") != selected:
18
+ raise RuntimeError("renderer is already initialized; use a fresh process")
19
+ os.environ["MUJOCO_GL"] = os.environ["PYOPENGL_PLATFORM"] = selected
20
+ for name in ("OMP_NUM_THREADS", "OPENBLAS_NUM_THREADS", "MKL_NUM_THREADS"):
21
+ if not os.environ.get(name, '').isdigit() or int(os.environ[name]) < 1:
22
+ os.environ[name] = "1"
23
+ base = ROOT / "libero/libero"
24
+ extension = ROOT / "libero_rotation_planning"
25
+ paths = dict(benchmark_root=str(base), assets=str(base / "assets"),
26
+ bddl_files=str(extension / "bddl_files"),
27
+ init_states=str(extension / "init_files"),
28
+ datasets=str(RESOURCES / "expert_reference/dataset"))
29
+ cache = Path(os.environ.get("XDG_CACHE_HOME", Path.home() / ".cache"))
30
+ default = cache / "libero-geomotion" / hashlib.sha256(str(ROOT).encode()).hexdigest()[:16]
31
+ target = Path(config_dir or os.environ.get("LIBERO_CONFIG_PATH", default)).resolve()
32
+ existing_config = getattr(sys.modules.get("libero.libero"), "config_file", None)
33
+ if existing_config is not None:
34
+ existing = Path(existing_config).resolve()
35
+ if existing != target / "config.yaml":
36
+ raise RuntimeError("LIBERO config already initialized; use a fresh process")
37
+ target.mkdir(parents=True, exist_ok=True)
38
+ contents = json.dumps(paths, indent=2) + "\n"
39
+ path = target / "config.yaml"
40
+ if not path.exists() or path.read_text() != contents:
41
+ with tempfile.NamedTemporaryFile(mode="w", dir=target, delete=False) as stream:
42
+ stream.write(contents)
43
+ temporary = stream.name
44
+ os.replace(temporary, path)
45
+ os.environ["LIBERO_CONFIG_PATH"] = str(target)
46
+ return paths
47
+
48
+
49
+ def reference_manifest():
50
+ return json.loads((RESOURCES / "expert_reference/reference_manifest.json").read_text())
51
+
52
+
53
+ def evaluation_protocol():
54
+ return json.loads((RESOURCES / "evaluation_protocol.json").read_text())
55
+
56
+
57
+ def task_manifest():
58
+ path = ROOT / "libero_rotation_planning/benchmark/task_manifest.json"
59
+ return json.loads(path.read_text())
libero/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Bundled LIBERO runtime namespace for the standalone GeoMotion distribution."""