OnTimeBench / README.md
JiaqiYin's picture
Link arXiv:2611.31705 and publish the paper citation
cd959aa verified
|
Raw History Blame Contribute Delete
5.5 kB
---
license: cc-by-4.0
task_categories:
- robotics
pretty_name: OnTimeBench Training Demonstrations
size_categories:
- 10K<n<100K
tags:
- simulation
- manipulation
- dynamic-manipulation
- mujoco
---
# OnTimeBench Training Demonstrations
[Paper](https://arxiv.org/abs/2611.31705) · [Benchmark code](https://github.com/ArrebolBlack/OnTimeBench) · [FoveaWAM model](https://huggingface.co/JiaqiYin/FoveaWAM)
OnTimeBench is a MuJoCo benchmark for manipulating moving objects. Under its Native protocol the scene keeps moving while the policy computes, so a policy's latency counts against it. This repository holds the training set: 11,200 successful demonstrations, 800 for each of 14 tasks, recorded from a simulated Franka Panda at 20 Hz. That comes to about 1.34M frames and 347 GB of HDF5. The held-out test scenes ship with the benchmark code, not with this dataset.
| Family | What the robot does | Directories in `episodes/` |
| --- | --- | --- |
| Grasp | picks up a moving object | `harmonic_grasp`, `conveyor_grasp`, `translating_grasp`, `rotating_grasp`, `occluded_grasp` |
| Place | puts a held part into a moving receptacle | `moving_receptacle`, `rotating_receptacle` |
| Pass | guides a wand along a rotating wire without touching it | `wire_passage`, `full_wire_passage` |
| Capture | catches a ball, slider, or can coming off a ramp | `ball_capture`, `ball_capture_on_table`, `slider_capture`, `can_capture` |
| Impact | grasps a part after a striker knocks it | `post_impact_grasp` |
Each demonstration comes from a task-specific expert that reads the simulator state and controls the arm in closed loop. We kept a demonstration only if the expert succeeded, replaying its commands reproduced the episode, and its path and jerk passed quality checks.
## Episode format
`train_n800.jsonl` lists one demonstration per line, with its `episode_id`, `task_id`, and a `path` relative to the manifest. The `frames` and `valid_actions` fields count observations and usable commands. For example, `grasp-000000` is stored in `episodes/harmonic_grasp/000000.hdf5`. Each HDF5 file holds one episode and has the root attributes `format="OnTimeBench"` and `schema_version=1`.
| HDF5 group | Contents |
| --- | --- |
| `policy/` | 224 × 224 RGB images, depth in metres, camera calibration, and robot state at each observation |
| `action/` | 7-D end-effector and gripper commands (`value`), the control ticks at which each command was issued and applied (`issued_tick`, `applied_tick`), and a validity mask (`valid`) |
| `supervision/` | target poses in world coordinates, geometry IDs, and 2D optical flow between consecutive observations |
| `metadata/` | episode and task identifiers, seed, camera names, control frequency, action specification, geometry roles, and event names in `episode_json` |
An episode with `T` frames has `T − 1` action rows. Train only on rows where `action/valid` is true; in `post_impact_grasp`, the last action of every episode is masked.
`supervision/target_object_pose_world` holds the target pose. The target is the receptacle in the Place tasks and the wire entry in the Pass tasks. `policy/T_robot_base_from_world` maps it into the robot base frame, which is where FoveaWAM reads it.
## Download and read one episode
With `huggingface_hub` and `h5py` installed, this downloads the manifest and the first demonstration:
```python
import json
import h5py
from huggingface_hub import hf_hub_download
repo = "JiaqiYin/OnTimeBench"
manifest = hf_hub_download(repo, "train_n800.jsonl", repo_type="dataset")
with open(manifest, encoding="utf-8") as f:
row = json.loads(next(f))
path = hf_hub_download(repo, row["path"], repo_type="dataset")
with h5py.File(path, "r") as episode:
print(row["task_id"], episode["policy/rgb"].shape, episode["action/value"].shape)
```
It prints `harmonic_grasp (54, 1, 224, 224, 3) (53, 7)`: 54 frames from one camera and 53 commands.
To get all 800 demonstrations of one task, download its directory together with the manifest:
```bash
hf download JiaqiYin/OnTimeBench train_n800.jsonl --repo-type dataset --local-dir data/ontimebench
hf download JiaqiYin/OnTimeBench --repo-type dataset --local-dir data/ontimebench \
--include "episodes/harmonic_grasp/*"
```
The manifest still lists all 14 tasks, so filter its rows by `task_id`. For the full training set (about 347 GB), omit `--include "episodes/harmonic_grasp/*"` from the second command.
## Evaluation
The 1,400 test scenes, 100 per task, are in the [OnTimeBench code repository](https://github.com/ArrebolBlack/OnTimeBench) at `manifests/v1/test_id.jsonl`. The standard evaluator loads them through `configs/suites/test_id.yaml` and runs the policy from each stored initial state. Test scenes use seeds that no training episode uses. The [FoveaWAM model card](https://huggingface.co/JiaqiYin/FoveaWAM) reports results for a policy trained on these demonstrations.
## License
The demonstrations, annotations, and training manifest are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
## Citation
```bibtex
@misc{yin2026foveawam,
title = {{FoveaWAM}: Role-Aware {4D} World-Action Modeling for Dynamic Manipulation},
author = {Yin, Jiaqi and Zhang, Baoyue and Zhang, Jiyuan and Liu, Wenxuan and
Yu, Zhaofei and Deng, Yue and Huang, Tiejun},
year = {2026},
eprint = {2611.31705},
archivePrefix = {arXiv},
primaryClass = {cs.RO},
url = {https://arxiv.org/abs/2611.31705}
}
```