Add track_3 README
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159# Track 3
Human manipulation of everyday objects, captured with a Vicon motion-capture system andtwo OAK camera rigs. Every tracked object has a textured 3D scan, and object poses areexpressed **in that scan's own frame**, so placing a mesh at a logged pose puts it wherethe real object was.
| | ||---|---|| Episodes | 46 || Frames | 12,077 (127–421 per episode, mean 263) || Rate | 20.25 fps nominal || Tasks | 16 || Cameras | 6 streams, 276 clips || Objects | 11, each with a textured mesh |
## Layout
```track_3/├── data/chunk-000/episode_0000NN.parquet poses + timing, one row per frame├── videos/chunk-000/observation.images.<camera>/episode_0000NN.mp4├── mesh/<object>/<object>.glb textured scan, metres, origin-centred└── meta/ ├── info.json schema, counts, tasks, objects ├── episodes_metadata.jsonl episode → task, capture notes └── camera_calibration.json intrinsics, distortion, stereo
```
## Pose data
Each parquet has **7 columns**, one row per video frame:
```observation.objects list<struct{name: string, pose: fixed_size_list<float32, 7>, visible: bool}>timestamp capture_time frame_index episode_index index task_index```
`observation.objects` holds only the objects that episode tracks (1–2, occasionally more).**Membership is constant within an episode** and sorted by name, so `objects[i]` is thesame object on every frame and no per-frame branching is needed. The episode's object listis also in the parquet's schema metadata under `objects`.
An object's `name` **is** its mesh folder: `white_pot` → `mesh/white_pot/white_pot.glb`.
### Conventions
- **`pose` is `[x, y, z, qw, qx, qy, qz]`** — translation in metres, **quaternion w-first**.- **Poses are `world_T_object`**, the frame of the scanned mesh, not the mocap rigid body. Each parquet declares this in schema metadata under `pose_convention`.- **x and y are centred per episode** on the mean of that episode's visible object positions. **z is not centred**, so height above the table stays physical (~0.61 m resting). The offset is baked into the values and is not stored, so episodes do not share a common origin.- When `visible` is false the pose is all zeros — a zero quaternion, not a rotation. **Filter on `visible` before using a pose.**
## Cameras
| Stream | Resolution | Kind ||---|---|---|| `exo_cam_a` | 2028×1520 | colour, static third-person || `exo_cam_b`, `exo_cam_c` | 1280×800 | mono stereo pair, 75 mm baseline || `ego_cam_a` | 2028×1520 | colour, head-mounted || `ego_cam_b`, `ego_cam_c` | 1280×800 | mono stereo pair, 75 mm baseline |
Video is **frame-exact with the parquets** — row *i* corresponds to frame *i* in everyclip, verified across all 276.
`meta/camera_calibration.json` has intrinsics, distortion, and intra-rig stereo extrinsics.It has **no camera-to-mocap-world extrinsic**, so meshes cannot be projected into theimages without solving that first. The exo camera is static across the whole session, soone pose would serve all episodes; the ego camera moves per frame.
The two rigs are not hardware-synchronised: mean cross-device skew is 7.39 ms (~0.15 frame).
## Quickstart
```bashpip install numpy scipy pyarrow trimesh viser # ffmpeg must be on PATHpython visualize_dataset.py # opens http://localhost:8080```
The viewer plays an episode with the real meshes at their poses, shows all six camerastreams as one synchronised mosaic, and reports the dataset and episode metadata.
### Reading poses
```pythonimport jsonimport numpy as npimport pyarrow.parquet as pq
table = pq.read_table("data/chunk-000/episode_000000.parquet")rows = table["observation.objects"].to_pylist()
names = [entry["name"] for entry in rows[0]] # constant for the episodefor i, name in enumerate(names): pose = np.array([row[i]["pose"] for row in rows]) # (frames, 7) visible = np.array([row[i]["visible"] for row in rows]) xyz, wxyz = pose[visible, :3], pose[visible, 3:] print(name, xyz.shape, "z range", xyz[:, 2].min().round(3), xyz[:, 2].max().round(3))
print(table.schema.metadata[b"pose_convention"].decode()) # world_T_object```
### Placing a mesh at a pose
```pythonimport trimeshfrom scipy.spatial.transform import Rotation
mesh = trimesh.load("mesh/white_pot/white_pot.glb", process=False).to_geometry()x, y, z, qw, qx, qy, qz = pose[100]
transform = np.eye(4)transform[:3, :3] = Rotation.from_quat([qx, qy, qz, qw]).as_matrix() # scipy is xyzwtransform[:3, 3] = [x, y, z]mesh.apply_transform(transform) # now in world coordinates```
### Reading a video frame
```pythonimport subprocess
def frame(path, index, width=640, height=480): raw = subprocess.run( ["ffmpeg", "-v", "error", "-i", path, "-vf", f"select=eq(n\\,{index}),scale={width}:{height}", "-vframes", "1", "-f", "rawvideo", "-pix_fmt", "rgb24", "-"], capture_output=True, check=True).stdout return np.frombuffer(raw, np.uint8).reshape(height, width, 3)
img = frame("videos/chunk-000/observation.images.exo_cam_a/episode_000000.mp4", 100)```
## Known characteristics
Things that are true of the data and will surprise you if you assume otherwise.
- **`timestamp` is a synthetic uniform grid** (49.373 ms ± 0.0002), while `capture_time` is the real clock (50.005 ms ± 1.756, range 12–95 ms). They diverge by up to 265 ms within an episode. **Use `capture_time` for velocities**; `timestamp` implies 20.254 fps where the true rate is 19.998.- **26 single-frame position spikes** (0.215% of frames) across 8 episodes, most in episode 7. Each is an isolated jump of 40–125 mm with near-stationary neighbours — a mocap glitch, not motion. A median filter over 3 frames removes them.- **`plastic_dish_rack` never moves.** It is a fixture in all 12 of its episodes: total path ≤65 mm, bounding box ≤5 mm. `blue_cup` is likewise static in episode 11 (`Cup_Stack`), where it is the base of the stack.- **`notes` keeps the original capture numbering**, so it has gaps where episodes were removed (`Pan_In_Dishrack` runs `Ep_1, Ep_6, Ep_7`). `episode_index` is contiguous; `notes` is provenance.- **`Pour_Cup_Into_Pot` uses a different cup in each of its two episodes** (`beige_cup`, `blue_cup`). Every other task has a fixed object set.track_3/README.mdAdded+159