/* Paddy data sample: landing page and episode explorer. Plain JS, no build step.
Routes: #/ overview, the landing page (sections: #/#tasks, #/#download, ...)
#/details full specification, only what the overview leaves out (#/details#rig, ...)
#/explore?ep=ep_014&t=31.4&outcome=failure&q=wall (t: start at that second)
Every number on the page comes from data/index.json (facts, episodes, downloads, clips) and
data/schema.json (features, cameras, conventions), which build/build_assets.py computes from the
datasets. Nothing here depends on build/ at runtime.
*/
"use strict";
// ---- Edit these before publishing -------------------------------------------------------
const CONFIG = {
// The two Hugging Face dataset repos ("org/name"), one entry each. null shows that release as
// "coming soon" (no download command, no links).
repos: {
sample: "PaddyDataCollection/cable_sorting_sample", // three cameras, color only
full: "PaddyDataCollection/cable_sorting_sample_full", // 4 of the episodes, every stream as recorded, lossless
},
// Where "Contact" goes (https://... or mailto:...).
contactUrl: "https://paddydata.ai",
// Shown in the footer and the download cards. null shows "licence to be announced".
license: "CC BY 4.0",
};
// What each release is called on the page (the repo name is shown beside it when set).
const RELEASES = {
sample: { title: "Sample: every episode, three cameras", folder: "cable_sorting_sample",
blurb: "All the episodes with the overhead camera and both wrist cameras in standard-quality color video, and every numeric stream. The download for training on the standard views." },
full: { title: "Full: everything as recorded, lossless", folder: "cable_sorting_sample_full",
blurb: "A few of the episodes with all the data captured at recording: the scene camera, the overhead camera at its recorded size, its infrared stereo pair, and depth from every camera, aligned and raw. Every frame is stored without loss.",
note: "This release keeps everything the rig captured, at full quality. It was recorded on a workstation with an NVIDIA GeForce RTX 5090 graphics card. Future datasets may be reduced, with fewer streams, lower resolutions or lossy compression, to suit the recording hardware or a customer's requirements." },
};
// The overview is the landing page at #/; #/details carries only what the overview leaves out.
// Nav entries: [href, label, keepOnTablet]; the last one links the other page and stays on phones too.
const PAGES = {
main: {
path: "/",
sections: ["hero", "overview", "tasks", "overlay", "download", "contact", "footer"],
nav: [["#/#tasks", "Task", true], ["#/#overview", "Specs", false],
["#/#download", "Download", true], ["#/details", "Full spec →", true]],
},
details: {
path: "/details",
sections: ["spec-head", "tasks", "rig", "streams", "features", "episode-meta", "files", "conventions", "quality", "code", "footer"],
nav: [["#/details#rig", "Rig", false], ["#/details#features", "All features", false],
["#/details#files", "Files", false], ["#/details#code", "Load it", true], ["#/", "← Overview", true]],
},
};
// Scene ids as recorded, in words.
const SCENE = {
Paddy_Office: { label: "Bins lower on the wall", desc: "Source bin and the two-compartment target bin hung lower on the bin wall." },
Paddy_Office_binwall_2_lowlight: { label: "Bins higher on the wall, light reduced", desc: "The bins hung higher on the bin wall, with the room light reduced." },
};
const CAMERA_WORD = { overhead: "overhead", scene: "scene", wrist: "wrist" };
// ------------------------------------------------------------------------------------------
const $ = (s, el = document) => el.querySelector(s);
const $$ = (s, el = document) => [...el.querySelectorAll(s)];
const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c]));
const pretty = (s) => String(s).replace(/_/g, " ");
const fmtDur = (s) => (s >= 60 ? `${Math.floor(s / 60)}:${String(Math.round(s % 60)).padStart(2, "0")}` : `${s.toFixed(1)} s`);
const fmtT = (s) => `${Math.floor(s / 60)}:${(s % 60).toFixed(1).padStart(4, "0")}`;
const sceneLabel = (s) => SCENE[s]?.label || pretty(s);
const sceneDesc = (s) => SCENE[s]?.desc || "";
const stepWord = (instr) => (instr || "").split(" ")[0] || "";
const visualizer = (repo) => `https://huggingface.co/spaces/lerobot/visualize_dataset?path=/${repo}/episode_0`;
let INDEX = null;
let SCHEMA = null;
let F = {}; // INDEX.facts
const epCache = new Map();
let player = null; // active explorer player, torn down on route change
const f = (key) => {
if (F[key] === undefined || F[key] === null) { console.warn("missing fact", key); return "–"; }
return F[key];
};
const subtaskName = (i) => INDEX.task.subtasks.find((s) => s.index === i)?.instruction || `step ${i + 1}`;
// ---- theme -------------------------------------------------------------------------------
(function theme() {
let saved = null;
try { saved = localStorage.getItem("paddy-theme"); } catch (e) { /* storage blocked */ }
if (saved) document.documentElement.dataset.theme = saved;
$("#theme").addEventListener("click", () => {
const dark = document.documentElement.dataset.theme
? document.documentElement.dataset.theme === "dark"
: matchMedia("(prefers-color-scheme: dark)").matches;
const next = dark ? "light" : "dark";
document.documentElement.dataset.theme = next;
try { localStorage.setItem("paddy-theme", next); } catch (e) { /* ignore */ }
if (player) player.redraw();
});
})();
// ---- routing -----------------------------------------------------------------------------
function parseHash() {
const h = location.hash.replace(/^#/, "") || "/";
const [pathAndQuery, anchor] = h.split("#");
const [path, query] = pathAndQuery.split("?");
return { path: path || "/", params: new URLSearchParams(query || ""), anchor: anchor || "" };
}
function tellParent() {
// Hugging Face shows Spaces in an iframe; keep the outer URL's hash in step for deep links.
try { window.parent.postMessage({ hash: location.hash || "#/" }, "https://huggingface.co"); } catch (e) { /* not embedded */ }
}
let currentPath = null;
let page = "main";
async function route() {
const { path, params, anchor } = parseHash();
if (!INDEX) {
[INDEX, SCHEMA] = await Promise.all([fetch("data/index.json"), fetch("data/schema.json")].map((p) => p.then((r) => r.json())));
F = INDEX.facts;
}
// Any unknown path (including the earlier /compact and /detailed) lands on a page rather than nothing.
page = path === "/details" || path === "/detailed" ? "details" : "main";
const view = path === "/explore" ? "/explore" : page;
renderNav(view);
if (view === "/explore") {
if (currentPath !== "/explore") renderExplore();
selectFromParams(params);
} else {
if (currentPath !== view) renderLanding(page);
if (anchor) requestAnimationFrame(() => document.getElementById(anchor)?.scrollIntoView());
else window.scrollTo(0, 0);
}
currentPath = view;
tellParent();
}
function renderNav(view) {
const nav = PAGES[view === "/explore" ? "main" : view].nav;
$("#nav-links").innerHTML = `Explore episodes` +
nav.map(([href, label, keep], i) => `${esc(label)}`).join("");
}
window.addEventListener("hashchange", route);
route();
// ---- landing -----------------------------------------------------------------------------
const quadTags = () => `
`).join("");
});
fill("stats", (el) => {
const stats = [
[f("episodes"), `episodes: ${f("successes")} successes, ${f("failures")} failures, none trimmed`],
[`${f("minutes")} min`, `${f("frames")} rows at ${f("fps")} fps`],
[f("subtasks"), "subtasks per episode, marked live; the failed step labelled"],
[`${f("cameras_full")} + depth`, "cameras recorded with depth; all of it lossless in the full release"],
[`${f("servo_hz")} Hz`, "joint setpoints to each arm; the action is the joint command"],
[`${f("sync_worst")} ms`, "camera-to-camera spread, worst episode (median)"],
];
el.innerHTML = stats.map(([b, s]) => `
${esc(b)}${esc(s)}
`).join("");
});
const camList = SCHEMA.cameras.map((c) => `${c.role === "wrist" ? `${c.name.split("_")[1]} wrist` : c.role} ${c.model.replace("Intel ", "")}`).join(", ").replace(/^./, (x) => x.toUpperCase());
fill("glance", (el) => {
const scenes = INDEX.scenes.map((s) => `${sceneLabel(s.id)}, ${s.episodes.length} episodes`).join("; ");
const rows = [
["Created by", "Paddy Data"],
["Task", `“${INDEX.task.instruction}”: ${f("subtasks")} subtasks (${INDEX.task.subtasks.map((s) => stepWord(s.instruction).toLowerCase()).join(", ")}), ${f("successes")} successes and ${f("failures")} failures`],
["Recorded", `${f("sessions")} sessions within ${f("hours_span")} hours (${f("utc_first")} to ${f("utc_last")} UTC) on Paddy's bimanual collection station, real hardware`],
["Environment", `Office, bins hung on a bin wall; ${f("scenes")} scenes (${scenes})`],
["Embodiment", `${f("arms")} × UFACTORY xArm7 (${f("dof")}-DoF), mounted ${f("mount")} · ${f("arms")} × Gripper G2 parallel jaws, 0 to ${f("gripper_mm")} mm · ${f("ft_axes")}-axis force-torque sensor on the right wrist`],
["Cameras", `${camList} · color at ${f("cam_fps")} fps; the sample has three of them at ${f("resolution")}, the full release all four at their recorded size (overhead ${f("top_recorded")}), with depth from each and the overhead camera's infrared stereo pair`],
["Control", `VR teleoperation: one Meta Quest hand controller per arm, deadman per hand; the arms follow in servo mode, ${f("servo_hz")} Hz joint setpoints`],
["Action", `Joint command per arm (${f("dof")} joints, absolute, then the gripper); the operator's TCP target beside it`],
["Operators", `${f("operators")} operator (anonymous id), not a trained expert`],
["Labels", "Task instruction, operator-marked subtasks with outcomes, episode outcome and the operator's note, scene"],
["Format", `${f("format")} · parquet + H.264 MP4 · in the full release lossless H.264 and FFV1 ${f("depth_bits")}-bit depth`],
["Releases", `Sample: all ${f("episodes")} episodes, ${f("size_sample")} · Full: episodes ${f("full_episode_list")}, everything as recorded, ${f("size_full")}`],
["Licence", CONFIG.license || "To be announced with the release"],
];
el.innerHTML = rows.map(([k, v]) => `
median ${s.median_s} s${s.success} success${s.failure ? `${s.failure} failure` : ""}
Clip: episode ${c.episode}, ${c.start_s} s to ${(c.start_s + c.seconds).toFixed(1)} s · Open the episode →
`;
}).join("");
});
fill("scenes", (el) => {
const showcase = new Set((clips.subtasks || []).map((c) => c.episode).concat((clips.loops || []).map((l) => l.episode)));
el.innerHTML = INDEX.scenes.map((s) => {
const ep = s.episodes.find((i) => showcase.has(i)) ?? s.episodes[0];
const id = `ep_${String(ep).padStart(3, "0")}`;
return `${esc(sceneLabel(s.id))}${esc(sceneDesc(s.id))}episodes ${s.episodes[0]} to ${s.episodes[s.episodes.length - 1]} (${s.episodes.length}) · scene id ${esc(s.id)}Explore these →`;
}).join("");
});
fill("failure-lede", (el) => {
el.innerHTML = `${f("failures")} of ${f("episodes")} episodes (${f("failure_pct")} %, ${f("failure_time_pct")} % of the recorded
time) end in failure, one at each step. Every trial the operator kept that day is in; none was filtered on quality.
The failed step is labelled failure, the episode's outcome is in meta/episodes and the
operator's note in its sidecar. Each clip is the last seconds of the failed step.`;
});
fill("failure-gallery", (el) => {
el.innerHTML = (clips.failures || []).map((c) => `
${vid(c.file, `Episode ${c.episode}: the failed step in all four views`)}${quadTags()}
`).join("") + "";
$$("tr.link", el).forEach((tr) => tr.addEventListener("click", (ev) => { if (!ev.target.closest("a")) location.hash = `#/explore?ep=${tr.dataset.ep}`; }));
});
fill("rig-views", (el) => {
el.innerHTML = (clips.loops || []).slice(4, 8).map((l) => `${vid(l.file)}${esc(camWord(l.camera))} · ${esc((camByName[l.camera]?.model || "").replace("Intel ", ""))}`).join("");
});
fill("parts", (el) => {
const cam = (role) => SCHEMA.cameras.filter((c) => c.role === role);
const top = cam("overhead")[0], scene = cam("scene")[0], wrists = cam("wrist");
const parts = [
["Arms", `${f("arms")} × UFACTORY xArm7, ${f("dof")}-DoF`, `Mounted ${f("mount")}. Joint states at ${f("joint_hz")} Hz; joint setpoints streamed to each arm at ${f("servo_hz")} Hz in servo mode (measured ${f("command_hz_left")} and ${f("command_hz_right")} Hz)`],
["Grippers", `${f("arms")} × UFACTORY Gripper G2`, `Parallel jaw, 0 to ${f("gripper_mm")} mm opening`],
["Force-torque", `${f("ft_axes")}-axis sensor on the right wrist`, `${f("ft_hz")} Hz; compensated and raw readings both kept`],
top && ["Overhead camera", top.model, `Color ${top.resolution} at ${f("cam_fps")} fps${top.sample_resolution && top.sample_resolution !== top.resolution ? ` (${top.sample_resolution} in the sample)` : ""}, ${top.hfov_deg}° wide, depth aligned to color, infrared stereo pair with a ${f("stereo_baseline_mm")} mm baseline`],
scene && ["Scene camera", `${scene.model}, fixed`, `Color ${scene.resolution} at ${f("cam_fps")} fps, ${scene.hfov_deg}° wide, depth aligned to color. In the full release; the previews here show it for every episode`],
wrists.length && ["Wrist cameras", `${wrists.length} × ${wrists[0].model}`, `Color ${wrists[0].resolution} at ${f("cam_fps")} fps, ${wrists[0].hfov_deg}° wide, depth aligned to color`],
["Teleoperation", "Meta Quest hand controllers", `One per arm, tracked at about ${f("quest_hz")} Hz, a deadman button per hand; teleop targets at ${f("target_hz")} Hz, which the arms follow through inverse kinematics`],
].filter(Boolean);
el.innerHTML = parts.map(([k, v, s]) => `
${esc(k)}${esc(v)}${esc(s)}
`).join("");
});
const residuals = () => {
const by = (role) => SCHEMA.cameras.filter((c) => c.role === role).map((c) => `${c.error_px} px`);
return { top: by("overhead").join(", "), scene: by("scene").join(", "), wrist: by("wrist").join(" and ") };
};
fill("overlay-clips", (el) => {
const side = ["camera_bottom", "camera_left", "camera_right"];
// build_overlay.py cuts the clips from the four-camera recording, whose episode can start later
const ovT = (c) => +(c.start_s + (INDEX.episodes[c.episode]?.rec_offset_s || 0)).toFixed(1);
el.innerHTML = (INDEX.overlay || []).map((c) => `
${vid(c.file, `${sceneLabel(c.scene)}: overhead, scene and both wrist views with the robot model drawn over the arms`, c.poster)}
camera_top
${side.map((s, i) => `${s}`).join("")}
${esc(sceneLabel(c.scene))}episode ${c.episode} · ${esc(stepWord(subtaskName(c.subtask)).toLowerCase())} · from ${ovT(c).toFixed(0)} s, as recordedOpen the episode →`).join("");
if (!(INDEX.overlay || []).length) el.closest("section")?.remove();
});
fill("overlay-note", (el) => {
const rs = residuals();
el.innerHTML = `Calibration residuals: overhead ${esc(rs.top)}, scene ${esc(rs.scene)}, wrists ${esc(rs.wrist)} (per camera in
meta/cameras.json). To draw it yourself: meta/paddy/robot_description.urdf with the meshes
it names (UFACTORY's xarm_description for the arms and grippers; the force-torque sensor's mesh is not in
the dataset), observation.state for the joints and gripper, and each camera's K,
D and calibration.frame_T_cam.`;
});
fill("calib-table", (el) => {
const mount = (c) => (c.moving ? "on the wrist, moves with the arm" : `fixed, ${c.role}`);
el.innerHTML = `
${esc(c.resolution)} ${c.hfov_deg}° wide${c.sample_resolution && c.sample_resolution !== c.resolution ? `, ${esc(c.sample_resolution)} in the sample` : ""}
${c.fx}, ${c.fy}
${c.cx}, ${c.cy}
${esc(c.intrinsics)}
ChArUco, ${esc(c.calibrated_at || "")} ${c.samples} views, to ${esc(c.extrinsic_frame || "")}
${c.error_mm} mm ${c.error_px} px
`).join("") + "";
});
const feat = Object.fromEntries(SCHEMA.features.map((x) => [x.key, x]));
const shape = (k) => (feat[k] ? `(${feat[k].shape.join(", ")})` : "");
fill("stream-cards", (el) => {
const cams = INDEX.cameras.map((c) => c.name.replace("camera_", "")).join(",");
const cards = [
[`${f("cameras_full")} color views`, `observation.images.camera_{${cams}}`, `H.264 at ${f("fps")} fps, ${f("resolution")} in the sample; lossless and at the recorded size in the full release (overhead ${f("top_recorded")}). The overhead view is the primary camera; camera_bottom is in the full release only.`],
["Depth", "depth/observation.depth{,_raw}.", `Full release only: lossless FFV1, ${f("depth_bits")}-bit millimetres, one image per row, aligned to each color image (${f("depth_res")} overhead, ${f("depth_res_wrist")} the others) and as each camera's own ${f("depth_raw_res")} image; also as LeRobot depth features.`],
["Stereo pair", "observation.images.camera_top_stereo_{left,right}", `Full release only: the overhead camera's two infrared imagers, rectified, ${f("stereo_res")}, ${f("stereo_baseline_mm")} mm baseline, lossless.`],
["Joint state", `observation.state ${shape("observation.state")}`, `Per arm ${f("dof")} joint angles and the gripper opening. Velocity and effort alongside.`],
["End-effector pose", "observation.eef_pose.", "TCP position and orientation per arm from the URDF, as quaternion and 6D rotation."],
["Wrist force-torque", "observation.force_torque.right", "Force (N) and torque (N·m) in the flange frame, compensated and raw, with a freshness flag."],
["Actions", `action ${shape("action")}`, `The joint command per arm: the last of the ${f("servo_hz")} Hz setpoints sent at or before the row, then the gripper command.`],
["Teleop targets", "paddy.target_pose.", "The operator's TCP target, the deadman, and which rows have a live command."],
["Labels", "task_index · paddy.subtask_index", "Instruction per episode, operator-marked subtasks per row, outcome per episode and per step, scene."],
];
el.innerHTML = cards.map(([h, c, p]) => `
${esc(h)}
${esc(c)}
${esc(p)}
`).join("");
});
fill("depth-video", (el) => { if (clips.depth_demo) el.src = clips.depth_demo.file; });
fill("depth-ticks", (el) => {
const d = clips.depth_demo;
if (!d) return;
el.innerHTML = [d.near_m, (d.near_m + d.far_m) / 2, d.far_m].map((v) => `${v.toFixed(2)} m`).join("");
});
fill("depth-caption", (el) => {
const d = clips.depth_demo;
if (d) el.textContent = `Overhead camera at ${f("top_recorded")} from the full release, episode ${d.episode} (episode ${INDEX.episodes[d.episode]?.full_index} there), ${d.seconds} s from ${d.start_s} s; near is red, black is no measurement.`;
});
fill("depth-fill", (el) => {
if (F.depth_fill_top) el.textContent = `Median share of pixels with a value, over the full release: overhead ${F.depth_fill_top} %, scene ${F.depth_fill_bottom} %, wrists ${F.depth_fill_left} and ${F.depth_fill_right} %.`;
});
fill("feature-table", (el) => {
const COMPACT_KEYS = ["observation.images.camera_top", "observation.state", "observation.velocity", "observation.effort",
"observation.eef_pose.left", "observation.force_torque.right", "action", "paddy.action_valid", "paddy.target_pose.left",
"paddy.engaged", "paddy.subtask_index", "paddy.utc_s"];
const cams = INDEX.cameras.map((c) => c.name.replace("camera_", "")).join(",");
const merge = { "observation.images.camera_top": `observation.images.camera_{${cams}}`, "observation.eef_pose.left": "observation.eef_pose.{left,right}",
"paddy.target_pose.left": "paddy.target_pose.{left,right}" };
let feats = SCHEMA.features;
if (compact) feats = COMPACT_KEYS.map((k) => feat[k]).filter(Boolean);
const mergedDoc = {
"observation.images.camera_top": [feat["observation.images.camera_top"]?.unit, "Overhead camera, scene camera and one camera per wrist, color. camera_top is the primary view; camera_bottom is in the full release only."],
"observation.eef_pose.left": [`${feat["observation.eef_pose.left"]?.unit} · frame: each arm's base`, "TCP position and orientation per arm, from URDF forward kinematics at the row's joints. 6D rotations alongside."],
"paddy.target_pose.left": [`${feat["paddy.target_pose.left"]?.unit} · frame: each arm's base`, "The operator's absolute TCP target per arm, from the hand controller."],
};
const unitOf = (x) => (compact && mergedDoc[x.key] ? mergedDoc[x.key][0] : [x.unit, x.frame && `frame ${x.frame}`].filter(Boolean).join(" · "));
const descOf = (x) => (compact && mergedDoc[x.key] ? mergedDoc[x.key][1] : x.desc);
let group = null;
const rows = feats.map((x) => {
let head = "";
if (!compact && x.group !== group) { group = x.group; head = `
`).join("") + "";
});
fill("conv-cards", (el) => {
const c = SCHEMA.conventions;
const cards = [
["Clock", "One clock for everything", "Every stream, camera frames included, is stamped on the recording computer's system clock as UTC epoch seconds. Each row carries its own time in paddy.utc_s."],
["Rows", `${f("fps")} fps, latest-at-or-before`, `Each row holds the newest reading of each stream at or before its time. A missed camera slot is held (${c.image_gap_policy}) and its age recorded in paddy.frame_age.; nothing older than ${c.hold_max_age_ms} ms is held.`],
["Actions", "Absolute joint commands", `action is per arm the ${f("dof")} absolute joint positions of the last servo setpoint at or before the row, then the gripper command; not a delta and not a TCP pose. The Cartesian target is in paddy.target_pose.. Before an arm's first command the action holds its measured joints and paddy.action_valid is false.`],
["Poses", "Metres, quaternions xyzw", `Positions in metres in each arm's base frame (${c.base_frames.join(", ")}), the TCP at ${c.tcp_frames.join(" and ")}. Quaternions are ${c.quaternions}. 6D rotations are the first two rotation-matrix columns.`],
["Gripper", c.gripper, `Gripper opening and command are normalized: ${c.gripper}. The G2 opens 0 to ${f("gripper_mm")} mm, linear in the fraction.`],
["Depth", "Millimetres, aligned and raw", `FFV1 ${c.depth.pix_fmt} per camera: aligned to its color image, and the camera's own ${c.depth.raw_resolution} image; one image per row on the color timeline; 0 = no measurement. A row with no depth frame gets an all-zero image (${f("depth_missing")} of ${f("depth_images")} aligned images). Full release only.`],
];
el.innerHTML = cards.map(([k, h, p]) => `
${esc(k)}
${esc(h)}
${esc(p)}
`).join("");
});
fill("trust", (el) => {
const trust = [
["One clock", "Every stream on the recording computer's clock", "Camera frames, joint states, force-torque and commands carry UTC timestamps from one source. Each row also carries its absolute time."],
[`${f("sync_best")}–${f("sync_worst")} ms`, "Camera spread per episode", `Median gap between the ${f("cameras_sample")} cameras' frames in a row, for the worst camera pair, from the best to the worst episode (median over episodes ${f("sync_median")} ms).`],
[`${f("held")} of ${f("cam_frames")}`, `camera frames held over (${f("held_pct")} %)`, `When a camera misses a ${f("fps")} fps slot the previous frame is held and the row records its age. The oldest frame used is ${f("max_frame_age_ms")} ms old.`],
[`${f("lag_left")} ms`, "From target to motion", `Each arm follows the operator's TCP target about ${f("lag_left")} ms (left) and ${f("lag_right")} ms (right) later, ${f("lag_min")} to ${f("lag_max")} ms per episode, most of it in the arm's own controller. Shifted by that lag, the measured TCP stays within ${f("track_p99")} mm of the target (p99, median over episodes).`],
["Untrimmed", "Every episode, start to stop", "Each episode runs from the first row where every stream is live to the operator's stop. The acceptance check requires every camera, joint and action stream complete and in sync."],
["SHA-256", "Manifest for every file", "manifest.json and SHA256SUMS list every file with its size and hash; check a download with one command."],
];
el.innerHTML = trust.map(([n, h, p]) => `
${esc(n)}
${esc(h)}
${esc(p)}
`).join("");
});
fill("stream-note", (el) => {
el.innerHTML = `We say what a stream is. The arms have no joint torque sensors: observation.effort is the
arm's own estimate from motor current and its dynamic model${F.effort_validated === "no" ? ", not yet checked against a reference" : ""},
and observation.velocity the velocity the arm reports. Contact forces come from the ${esc(f("ft_axes"))}-axis sensor on the right
wrist (fresh on ${esc(f("ft_valid_pct"))} % of rows; per-episode peak force median ${esc(f("peak_force_median"))} N, highest
${esc(f("peak_force_max"))} N).`;
});
fill("limits", (el) => {
const items = [
["Failures are in the data.", `${f("failures")} of ${f("episodes")} episodes (${f("failure_pct")} %, ${f("failure_time_pct")} % of the time) are failures, one at each step. Filter on the episode outcome (paddy/outcome in meta/episodes) or on the subtask outcomes if you want successes only.`],
["The arms take turns.", `The left arm picks and passes, the right arm takes the cable and places it. An arm has a live command on ${f("valid_left")} % (left) and ${f("valid_right")} % (right) of all rows, ${f("valid_min")} to ${f("valid_max")} % per arm and episode. Elsewhere its action holds the measured joints; mask with paddy.action_valid. The share is lower while an arm waits for the other arm's turn and while the operator pauses. This sample was not recorded by a trained expert operator.`],
["Command lag.", `The measured TCP follows the operator's TCP target about ${f("lag_left")} ms later (median; ${f("lag_min")} to ${f("lag_max")} ms per episode and arm), most of it in the arm's own controller. The lag is steady: shifted by it, the measured TCP stays within ${f("track_p99")} mm of the target (p99). Each episode's value is in the sidecar.`],
["One operator, one rig.", `All ${f("episodes")} episodes come from ${f("operators")} operator, not a trained expert, in ${f("sessions")} sessions within ${f("hours_span")} hours, on one rig, in ${f("scenes")} scenes. Expect less variety than in a multi-operator dataset.`],
["People in view.", `${f("people")} Faces are not blurred.`],
["Depth has holes.", `In the full release, 0 means no measurement${F.depth_fill_top ? `: a median ${F.depth_fill_top} % (overhead), ${F.depth_fill_bottom} % (scene), ${F.depth_fill_left} and ${F.depth_fill_right} % (wrists) of pixels have a value` : ""}.${F.depth_far_pct ? ` ${F.depth_far_pct} % of measured pixels read more than ${F.depth_far_m} m (up to ${F.depth_max_m} m), far outside the work area; clip depth to your working range.` : ""} ${f("depth_missing")} of ${f("depth_images")} depth images are empty because no depth frame had arrived for that row.`],
];
el.innerHTML = items.map(([b, t]) => `
${esc(b)} ${t}
`).join("");
});
fill("code-blocks", (el) => {
const repo = CONFIG.repos.sample || CONFIG.repos.full || "/";
const folder = RELEASES.sample.folder;
const [sw, sh] = (INDEX.downloads.sample.top_resolution || "").split("×");
const topShape = `3, ${sh}, ${sw}`; // the sample's overhead camera (the full release keeps the recorded size)
const [, dh, dw] = feat["observation.images.camera_top"]?.shape || [];
const blocks = [
["LeRobot", `from lerobot.datasets.lerobot_dataset import LeRobotDataset
ds = LeRobotDataset("${repo}")
frame = ds[0]
frame["observation.state"].shape # ${shape("observation.state")}
frame["observation.images.camera_top"].shape # (${topShape})
frame["action"].shape # ${shape("action")} joint command + gripper`],
["pandas", `import numpy as np, pandas as pd
df = pd.read_parquet("${folder}/data/chunk-000/file-000.parquet")
live = np.stack(df["paddy.action_valid"]) # (rows, 2) left, right
ft = np.stack(df["observation.force_torque.right"]) # fx fy fz tx ty tz
step = df["paddy.subtask_index"] # -1 outside the marks`],
["Depth (PyAV, full release)", `import av
path = "${RELEASES.full.folder}/depth/observation.depth.camera_top/chunk-000/file-000.mkv"
with av.open(path) as c:
for f in c.decode(video=0):
depth_mm = f.to_ndarray(format="gray16le") # ${dh}x${dw} uint16, 0 = no data`],
["Check the download", `cd ${folder}
sha256sum -c SHA256SUMS`],
];
el.innerHTML = blocks.map(([h, code]) => `
${esc(h)}
${esc(code)}
`).join("");
});
renderDownload();
$$("#view .copy").forEach((b) => b.addEventListener("click", async () => {
try { await navigator.clipboard.writeText(b.dataset.copy); b.textContent = "copied"; }
catch (e) { b.textContent = "select + copy"; }
setTimeout(() => (b.textContent = "copy"), 1500);
}));
$$(".contact-link", view).forEach((el) => (el.href = CONFIG.contactUrl));
fill("license-line", (el) => (el.textContent = CONFIG.license ? `Sample data licensed ${CONFIG.license}; see the dataset cards.` : "Sample data licence to be announced with the release."));
}
function treeText() {
const cams = INDEX.cameras.map((c) => c.name.replace("camera_", "")).join(",");
return `${RELEASES.full.folder}/
├── data/chunk-000/file-NNN.parquet
├── videos/
│ ├── observation.images.camera_{${cams}}/
│ │ └── chunk-000/file-NNN.mp4
│ └── observation.images.camera_top_stereo_{left,right}/,
│ observation.images.camera_{${cams}}_depth/ full release only
├── depth/ full release only
│ ├── observation.depth.camera_{${cams}}/ aligned
│ └── observation.depth_raw.camera_{${cams}}/ the camera's own
│ └── chunk-000/file-NNN.mkv
├── meta/
│ ├── info.json stats.json tasks.parquet
│ ├── modality.json cameras.json
│ ├── episodes/chunk-000/file-000.parquet
│ └── paddy/
│ ├── info.json keep_ranges.json
│ ├── robot_description.urdf
│ └── episodes/.json
├── manifest.json
├── SHA256SUMS
└── README.md`;
}
function renderDownload() {
const el = $("#dl");
if (!el) return;
const D = INDEX.downloads;
const camNames = (k) => D[k].cameras.slice().sort((a, b) => INDEX.cameras.findIndex((c) => c.name === a) - INDEX.cameras.findIndex((c) => c.name === b));
fill2("dl-lede", (x) => (x.innerHTML = `The sample has all ${esc(f("episodes"))} episodes in a light form; the full release has
${esc(f("full_episodes"))} of them (episodes ${esc(f("full_episode_list"))}) with everything the rig recorded, lossless. Both are
${esc(f("format"))} with the full set of numeric streams, labels, calibration and the robot model.`));
el.innerHTML = ["sample", "full"].map((k) => {
const d = D[k], R = RELEASES[k], repo = CONFIG.repos[k];
const cmd = `hf download ${repo || "/"} --repo-type dataset --local-dir ${R.folder}`;
const py = `from lerobot.datasets.lerobot_dataset import LeRobotDataset\nds = LeRobotDataset("${repo || "/"}")`;
const status = repo ? `Available` : `Coming soon`;
const only = k === "full" ? camNames("full").filter((c) => !D.sample.cameras.includes(c)) : [];
return `
${esc(d.format)} · ${d.episodes} episodes · ${d.minutes} min · ${esc(d.size)}
${d.lossless ? `Lossless H.264 color at the recorded size: ${esc(d.top_resolution)} overhead, ${d.resolution.filter((x) => x !== d.top_resolution).map(esc).join(", ")} the others` : `${d.resolution.map(esc).join(", ")} color at ${esc(f("cam_fps"))} fps, H.264`}
${d.depth ? `Depth from every camera, aligned and raw, lossless FFV1${d.stereo ? "; the overhead camera's infrared stereo pair" : ""} full only` : "No depth"}
${d.rows_text} rows · ${d.features} features · ${d.files} files
Preview files for this episode:
${CAM_TILES.map(([c]) => `${c}.mp4`).join("")}series.json· Space play/pause · ← → step · previews are ${esc(f("preview_res"))}; the sample has ${esc(f("resolution"))} and full-rate streams.
The scene camera is not in the sample: its preview is cut from the recording, and the full release has it for episodes ${esc(f("full_episode_list"))}.