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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
tags:
|
| 6 |
+
- lerobot
|
| 7 |
+
- imitation-learning
|
| 8 |
+
- ur7e
|
| 9 |
+
- manipulation
|
| 10 |
+
- act
|
| 11 |
+
- hdf5
|
| 12 |
+
- teleoperation
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# banana_in_pot_raw — raw HDF5 + MP4 teleop logs (UR7e, "put the right banana in the pot")
|
| 18 |
+
|
| 19 |
+
The **raw, unprocessed** recordings behind the
|
| 20 |
+
[`banana_in_pot`](https://huggingface.co/datasets/Bigenlight/banana_in_pot) family: one
|
| 21 |
+
folder per take, each with a **native multi-rate HDF5** of every logged signal (UR joints
|
| 22 |
+
with velocities and efforts, joint commands, TCP pose, 6-axis force/torque wrench, gripper,
|
| 23 |
+
and the **GELLO leader** streams) plus the two **raw camera MP4s**. Use this if you want to
|
| 24 |
+
resample differently, add features, or study the leader/follower relationship — otherwise
|
| 25 |
+
start from the ready-to-train LeRobot datasets.
|
| 26 |
+
|
| 27 |
+
- **51 takes · 21,524 camera frames · ~718 s (~12 min) · 30 fps cameras**
|
| 28 |
+
- Per take: `vectors.h5` + `cam1.mp4` + `cam2.mp4`
|
| 29 |
+
- **Nothing resampled** — each stream keeps its own `t_rel_s` clock and native rate.
|
| 30 |
+
|
| 31 |
+
## Setup
|
| 32 |
+
|
| 33 |
+
Collected on a **Universal Robots UR7e** — 6-DOF collaborative arm, joints in **radians** —
|
| 34 |
+
driven by a **GELLO** low-cost 3D-printed **leader arm** for kinesthetic teleoperation. The
|
| 35 |
+
operator moves the GELLO leader; its joint positions map to UR7e joint commands. Two Intel
|
| 36 |
+
RealSense cameras record **RGB video only**:
|
| 37 |
+
|
| 38 |
+
- **Camera 1 — Intel RealSense D435**
|
| 39 |
+
- **Camera 2 — Intel RealSense D435if** (a D435 variant)
|
| 40 |
+
|
| 41 |
+
Both stream **1280×720 (720p) @ 30 fps**, `yuv420p`; raw files are `cam1.mp4` / `cam2.mp4`
|
| 42 |
+
(**MPEG-4 encoded**). **No depth or IR was recorded** — despite the RealSense depth
|
| 43 |
+
capability, only the RGB color stream was saved (no point cloud, no depth map). One camera
|
| 44 |
+
is on a **tripod** (scene / third-person view), the other views the workspace; the two
|
| 45 |
+
physical viewpoints (cam1 ↔ cam2) must be kept in order. An ArUco/AprilTag fiducial is
|
| 46 |
+
present on the table.
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+

|
| 50 |
+
|
| 51 |
+
## Task
|
| 52 |
+
|
| 53 |
+
**"put the right banana in the pot."** The tabletop holds distractor objects — **two
|
| 54 |
+
bananas, an apple, carrots/peppers, and a slice of watermelon** — plus a **silver pot**.
|
| 55 |
+
The operator grasps the **RIGHT banana** (the target; everything else is a distractor) and
|
| 56 |
+
places it in the pot. **Success = the right banana ends up in the pot.** All 51 takes are
|
| 57 |
+
successful demonstrations.
|
| 58 |
+
|
| 59 |
+
## HDF5 schema (`vectors.h5`)
|
| 60 |
+
|
| 61 |
+
Each group has its own `t_rel_s` (seconds, relative to take start) sampled at that stream's
|
| 62 |
+
native rate. Field counts below are per-take examples (they vary with take length).
|
| 63 |
+
|
| 64 |
+
| group | native rate | fields | units / meaning |
|
| 65 |
+
|---|---|---|---|
|
| 66 |
+
| `cam1_frames` | 30 Hz | `frame_idx`, `t_rel_s` | index/time of each cam1 (D435) MP4 frame |
|
| 67 |
+
| `cam2_frames` | 30 Hz | `frame_idx`, `t_rel_s` | index/time of each cam2 (D435if) MP4 frame |
|
| 68 |
+
| `command` | ~56 Hz | `cmd1..cmd6`, `t_rel_s` | commanded **absolute** UR joint targets (rad) |
|
| 69 |
+
| `ur_joint_states` | ~56 Hz | `q1..q6`, `qd1..qd6`, `eff1..eff6`, `t_rel_s` | UR7e **follower** joint positions (rad), velocities (rad/s), efforts (torque) |
|
| 70 |
+
| `tcp_pose` | ~56 Hz | `x,y,z`, `qw,qx,qy,qz`, `t_rel_s` | TCP pose in robot **base frame**: position (m) + orientation quaternion |
|
| 71 |
+
| `wrench` | ~56 Hz | `fx,fy,fz`, `tx,ty,tz`, `t_rel_s` | 6-axis end-effector force (N) + torque (N·m) |
|
| 72 |
+
| `gripper` | ~37 Hz | `grip_pos`, `grip_cmd`, `gello_grip`, `t_rel_s` | measured opening, commanded (binary open/close), leader gripper |
|
| 73 |
+
| `gello_joint_states` | ~30 Hz | `q1..q6`, `qd1..qd6`, `t_rel_s` | **GELLO leader** joint positions (rad) + velocities (rad/s) |
|
| 74 |
+
| `synchronized` | — | (all keys, length 0) | **EMPTY in every take** — a scaffold group; ignore |
|
| 75 |
+
|
| 76 |
+
**Cameras:** `cam1.mp4` / `cam2.mp4`, 1280×720 RGB, 30 fps, MPEG-4. Use `cam*_frames`
|
| 77 |
+
`frame_idx` / `t_rel_s` to align frames to the vector streams.
|
| 78 |
+
|
| 79 |
+
> See **[`DATA_DICTIONARY.md`](DATA_DICTIONARY.md)** in this repo for the exhaustive
|
| 80 |
+
> per-field listing (every dataset key, dtype, and unit).
|
| 81 |
+
|
| 82 |
+
Notes:
|
| 83 |
+
- `command` (cmd1..6) are the joint targets sent to the UR7e; `ur_joint_states.q*` are the
|
| 84 |
+
measured follower joints. `gello_joint_states.q*` are the **leader** joints — provided
|
| 85 |
+
for completeness but **not a valid inference input** (the deployed robot cannot see the
|
| 86 |
+
leader).
|
| 87 |
+
- `tcp_pose` is the recorded RTDE TCP (validated to be the flange pose; sub-mm / sub-0.2°
|
| 88 |
+
agreement with forward kinematics at rest).
|
| 89 |
+
- The physical robot is a **UR7e**; the derived LeRobot datasets carry the legacy metadata
|
| 90 |
+
label `robot_type: "ur5e_gello"`.
|
| 91 |
+
|
| 92 |
+
## How the derived datasets are built from this
|
| 93 |
+
|
| 94 |
+
| dataset | contents |
|
| 95 |
+
|---|---|
|
| 96 |
+
| **raw (this repo)** | full multi-rate HDF5 + 2 MP4s — every signal above, native rates |
|
| 97 |
+
| [LeRobot joint](https://huggingface.co/datasets/Bigenlight/banana_in_pot) | `observation.state`(7)=`ur_q1..6`+`grip_pos`; `action`(7)=`cmd1..6`+`grip_cmd`; 2 AV1 videos |
|
| 98 |
+
| [LeRobot EE](https://huggingface.co/datasets/Bigenlight/banana_in_pot_ee) | the above **+** `observation.tcp_pose`(7) **+** `observation.wrench`(6) |
|
| 99 |
+
|
| 100 |
+
Both LeRobot datasets **resample every stream onto the 30 fps camera grid** (nearest
|
| 101 |
+
timestamp on the cam1 clock), exclude the `gello_*` leader streams, and re-encode the
|
| 102 |
+
videos to AV1. This raw release keeps everything at native rate so you can resample or add
|
| 103 |
+
features yourself.
|
| 104 |
+
|
| 105 |
+
## Usage
|
| 106 |
+
|
| 107 |
+
Read a take with `h5py`:
|
| 108 |
+
|
| 109 |
+
```python
|
| 110 |
+
import h5py, cv2, numpy as np
|
| 111 |
+
|
| 112 |
+
take = "take_04_20260707_154857"
|
| 113 |
+
with h5py.File(f"{take}/vectors.h5", "r") as f:
|
| 114 |
+
ur_q = np.stack([f["ur_joint_states"][f"q{k+1}"][:] for k in range(6)], axis=1) # (N56, 6) rad
|
| 115 |
+
cmd = np.stack([f["command"][f"cmd{k+1}"][:] for k in range(6)], axis=1) # (N56, 6) rad
|
| 116 |
+
tcp = np.stack([f["tcp_pose"][k][:] for k in "x y z qw qx qy qz".split()], 1) # (N56, 7)
|
| 117 |
+
wrench = np.stack([f["wrench"][k][:] for k in "fx fy fz tx ty tz".split()], 1) # (N56, 6)
|
| 118 |
+
grip = f["gripper"]["grip_pos"][:] # (N37,)
|
| 119 |
+
cam1_t = f["cam1_frames"]["t_rel_s"][:] # (Ncam,) 30 Hz
|
| 120 |
+
# each stream has its own f[group]["t_rel_s"] — align by nearest timestamp
|
| 121 |
+
|
| 122 |
+
cap = cv2.VideoCapture(f"{take}/cam1.mp4") # 1280x720 RGB @ 30 fps
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
To go straight to training, use the ready LeRobot datasets instead
|
| 126 |
+
(`LeRobotDataset("Bigenlight/banana_in_pot")`); a trained ACT policy is at
|
| 127 |
+
[**Bigenlight/act_banana_in_pot**](https://huggingface.co/Bigenlight/act_banana_in_pot).
|
| 128 |
+
|
| 129 |
+
## Known quirks
|
| 130 |
+
|
| 131 |
+
- **1 take** originally had `NaN` in `grip_cmd` (333 frames) — present in the raw log;
|
| 132 |
+
repaired by forward/back-fill only in the derived LeRobot datasets.
|
| 133 |
+
- **~7 takes** contain robot-stream dropouts (75–280 ms gaps in the ~56 Hz streams).
|
| 134 |
+
- `grip_pos` reaches ~0.898 (fully-open gripper) — physical, not an artifact.
|
| 135 |
+
- `synchronized/` group is **empty** in all takes.
|
| 136 |
+
|
| 137 |
+
## Related repositories (this family)
|
| 138 |
+
|
| 139 |
+
| repo | contents |
|
| 140 |
+
|---|---|
|
| 141 |
+
| [Bigenlight/banana_in_pot](https://huggingface.co/datasets/Bigenlight/banana_in_pot) | main LeRobot joint-space dataset |
|
| 142 |
+
| [Bigenlight/banana_in_pot_ee](https://huggingface.co/datasets/Bigenlight/banana_in_pot_ee) | EE variant (+ `tcp_pose` 7, `wrench` 6) |
|
| 143 |
+
| [**Bigenlight/banana_in_pot_raw**](https://huggingface.co/datasets/Bigenlight/banana_in_pot_raw) | **this** — raw HDF5 + MP4 |
|
| 144 |
+
| [Bigenlight/act_banana_in_pot](https://huggingface.co/Bigenlight/act_banana_in_pot) | trained ACT policy |
|
| 145 |
+
|
| 146 |
+
The EE variant additionally feeds **HIL-SERL**-style end-effector-delta training (base-frame
|
| 147 |
+
TCP displacement + gripper), derived from the `tcp_pose` stream above.
|
| 148 |
+
|
| 149 |
+
## Limitations & intended use
|
| 150 |
+
|
| 151 |
+
- Single task, single scene layout, single operator; **all demos are successes** (no
|
| 152 |
+
failure/recovery data).
|
| 153 |
+
- Streams are **asynchronous** (each has its own clock); you must resample/align them
|
| 154 |
+
yourself — the `synchronized/` group is empty.
|
| 155 |
+
- On fast motions `tcp_pose` carries a small timing-jitter offset relative to FK (an async
|
| 156 |
+
logging artifact, not a kinematic error); at rest it agrees to sub-mm.
|
| 157 |
+
- Intended for research in imitation learning, teleoperation analysis, end-effector-space
|
| 158 |
+
RL, and custom dataset construction.
|
| 159 |
+
|
| 160 |
+
## Citation
|
| 161 |
+
|
| 162 |
+
```bibtex
|
| 163 |
+
@misc{theo2026bananainpotraw,
|
| 164 |
+
title = {banana_in_pot_raw: raw UR7e + GELLO teleoperation logs (HDF5 + MP4) for
|
| 165 |
+
"put the right banana in the pot"},
|
| 166 |
+
author = {Theo and {Bigenlight}},
|
| 167 |
+
year = {2026},
|
| 168 |
+
howpublished = {\url{https://huggingface.co/datasets/Bigenlight/banana_in_pot_raw}},
|
| 169 |
+
note = {51 takes, native multi-rate HDF5 + dual RGB MP4}
|
| 170 |
+
}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
License: **Apache-2.0**.
|