Skip to content

Data format

The published data live in one directory tree of 11 LeRobot v3 datasets. Nothing here needs the robocasa_relations package: everything is parquet, mp4, npz, gzip and json.

<dataset root>/                       the directory that holds the groups
  trials/<split>.jsonl                evaluation trial tables (see Evaluation)
  provenance.json                     robosuite, RoboCasa and dataset code commits
  <family>/<split>/                   one LeRobot v3 dataset per group (11 groups)
    meta/info.json                    features, fps (20), totals, file patterns
    meta/tasks.parquet                one row per episode: the scene stem as LeRobot task string, task_index
    meta/episodes/chunk-000/file-000.parquet   per-episode length and video timestamps
    meta/stats.json                   LeRobot feature statistics
    meta/manifest.jsonl               one row per episode: task, split, layout, style, seed, stem
    data/chunk-000/file-NNN.parquet   the frame table (all episodes, appended in publish order)
    videos/observation.images.robot_and_counter/chunk-000/file-NNN.mp4
    extras/episode_NNNNNN/            per-episode files (see below)

The groups and their sizes are listed in Splits. Episodes are appended in publish order, not task order; use meta/manifest.jsonl (below) to find an episode by task or stem.

Frame table (parquet)

One row per frame at 20 Hz. Rows of the same episode_index are consecutive. The row at frame t holds the observation before action t (frame_alignment = observation_t_action_t).

Column dtype, shape Meaning
observation.state float32, 39 robot proprioception, concatenated in this order: robot0_joint_pos (7, rad), robot0_joint_vel (7), robot0_eef_pos (3, m), robot0_eef_quat (4, xyzw), robot0_gripper_qpos (2), robot0_gripper_qvel (2), robot0_base_pos (3, m), robot0_base_quat (4, xyzw), robot0_base_to_eef_pos (3, m), robot0_base_to_eef_quat (4, xyzw). Positions are MuJoCo world metres unless named base_to_eef (robot base frame)
observation.eef_pose_world float64, 7 gripper site pose at frame t: x y z qx qy qz qw, world frame, metres
observation.robot0_eef_quat_site float64, 4 site orientation at frame t, xyzw
action float64, 8 the successor site pose (frame t+1): x y z qx qy qz qw in the world frame, then the gripper command (+1 closed, -1 open)
action_relative float64, 8 inv(world_site_pose_t) @ world_site_pose_t+1: translation in the site frame of t, quaternion xyzw, then the gripper command
action_joint float32, 13 the native controller action executed at frame t (joint-position controller): right arm 0..7, gripper 7, base 8..11, torso 11, base mode 12..13
annotation.command_index int64 index of the command being executed (0-based)
annotation.active_command string e.g. move(apple, on, plate)
next.reward float32 1.0 on the frame where a command completes (the last command also sets next.done), else 0
next.done bool true on the last frame
timestamp, frame_index, episode_index, index, task_index LeRobot bookkeeping; timestamp = frame_index / 20

The LeRobot task of an episode (meta/tasks.parquet, returned as task by LeRobotDataset) is its scene stem, for example 1step_apple_in_basket_easy__d050, not a language instruction. The commands are in annotation.active_command per frame and in extras/episode_*/task.json.

Conventions: world frame = the MuJoCo world of the kitchen (right-handed, metres, z up); all quaternions are xyzw; angles in radians. Depth is not stored in the frame table or the video (schema.json: depth_stored false); replay it (see Replay and depth). The variable-length object state of the raw recordings (observation.object_state, observation.environment_state) is not in the frame table; the object poses are in extras/episode_*/object_poses.npz.

Video

observation.images.robot_and_counter: the front camera, 320x240 RGB, 20 fps, h264 (yuv420p), re-rendered from the recorded simulator states. LeRobot v3 concatenates episodes into file-NNN.mp4; the start and end of each episode inside the file are videos/observation.images.robot_and_counter/from_timestamp and .../to_timestamp in meta/episodes/.../file-NNN.parquet (seconds; from_timestamp * 20 is the first frame index). Decode with pyav; the torchcodec backend needs ffmpeg libraries that are not installed on every machine (video_backend="pyav" in LeRobotDataset).

Per-episode files: extras/episode_NNNNNN/

NNNNNN is the dataset's episode_index. With T frames in the frame table:

File Contents
states.npz key states, float64, shape (T+1, 1+nq+nv): the MuJoCo state [time, qpos, qvel] of the whole scene before every action, plus the final state. Row t goes with frame t; row T is the state after the last action. This is the file that makes replay possible
model.xml.gz the gzipped MJCF of the episode's scene (robot, kitchen, objects), whose asset paths read $PKG_ROOT/<package>/models/assets/... for <package> robosuite or robocasa ($PKG_ROOT is a placeholder for the directory that contains the package; --asset-root resolves it to a local installation, see Replay and depth). It contains the wrist camera robot0_eye_in_hand but not the scene cameras
camera_calibration.npz per camera <name>.intrinsics (float64, 3x3 pinhole matrix at the raw 640x480 size, fx = fy, cx = 320, cy = 240) and <name>.camera_to_world (float64, 4x4, OpenCV convention: x right, y down, z forward, world metres). Halve fx, fy, cx, cy for 320x240. Names: robot_left, robot_right, robot_and_counter, side_low, robot0_eye_in_hand (the wrist entry is the pose at the start; the camera moves with the hand)
object_poses.npz one key per scene object (apple, plate, ...), float32, shape (T, 7): x y z qx qy qz qw in the world frame at each frame
scene.json the scene configuration used to build the episode: layout and style ids, robot (base fixture and base_offset, start joints), workspace box, cameras (placements in the island frame, raw 640x480), objects (type, style, placement) and the seed of the accepted attempt
task.json the commands (action, object, relation, target), the stem name and the manifest seed
episode.json num_frames, seed and metadata: attempt index, code_commit of the collector, initial object positions and robot base pose in the world frame, planner metrics (motion_metrics), placement_resamples, scene_build_seconds
schema.json the layouts of the state vectors and the action definitions above, units, the frame-alignment rule
scene_graph_gt.json, scene_graph_symbolic.json relation graphs (nodes, edges of {source, relation, target}) at the start, after each command and at the end (simulator_state_index, completed_command_index)
scene_graph_steps.json, scene_graph_steps.npz per-state relation labels: masks, uint8, (T+1, N, N) for the N objects in object_names; entry [t, i, j] is a bit set over relation_bits (in 1, on 2, left_of 4, right_of 8, in_front_of 16, behind 32) for "object i relation object j", computed with the oracle predicate in the robot frame at the episode start, tolerance 0.025 m
surface_point_tracks.json, surface_point_tracks.npz 128 surface points per object: local_points (N, 128, 3) in the object's root frame, world_points (T+1, N, 128, 3) world metres, root_poses_wxyz (T+1, N, 7) (position then quaternion wxyz)

The camera rig

Five cameras exist in every scene; the four scene cameras are fixed in the island frame, the wrist camera moves with the hand. The placements below are the island-frame numbers of layout 12 as stored in scene.json (metres; x along the island's long axis, y across it with the robot at the near edge facing +y, z up from the floor; the counter top is at z = 0.92); they differ a little per layout with the island size and the robot's base offset, and camera_calibration.npz has the exact world pose of every episode. All were rendered at 640x480 during collection.

Name Role Placement (layout 12) fovy
robot_and_counter front camera, published at 320x240 across the island from the robot, 1.27 m high, looking back at the robot and the counter 36 deg
side_low ("camera A") second view, replayable on the robot's right, 1.36 m high, looking across the counter (mirrored to the left on layout 29) 45 deg
robot_left detection camera, replayable 1.0 m to the robot's left, just above the counter top (z = 0.98) 38 deg
robot_right detection camera, replayable 1.0 m to the robot's right, just above the counter top 38 deg
robot0_eye_in_hand wrist camera, replayable on the gripper hand 75 deg

Everything except robot_and_counter is not in the published videos but is reproduced exactly by replaying states.npz (see Replay and depth); the collector's detection step used robot_left, robot_right and robot_and_counter.

From a published episode to its manifest row and seed

meta/manifest.jsonl has one JSON row per episode in the dataset's order:

{"episode_index": 0, "task": "2step_lemon_corn_in_pot_easy__order_10", "demo": 50,
 "family": "order", "split": "val", "layout": 12, "style": 33, "seed": 2062050,
 "stem": "2step_lemon_corn_in_pot_easy__order_10__d050",
 "island_fixture": "island_island_group", "objects": ["pot", "lemon", "corn"],
 "placement_resamples": {}}

stem is the unique scene id; layout and style are the scene's RoboCasa layout and style ids (the same values as scene.layout_id and scene.style_id of extras/episode_*/scene.json; the stored values define the scene and are never re-drawn); seed is the manifest seed of the scene. A scene is collected in attempts; attempt k uses seed + k * 1,000,000. The seed of the accepted attempt is extras/episode_*/scene.json: seed, so (scene seed - manifest seed) / 1,000,000 is the number of failed attempts before it.

Known gaps

Short version (details and reasons in Collection):

  • Depth, the extra camera videos and the variable-length object state are not in the published frame table or videos.

6,358 of 6,440 planned scenes (98.7 %) were accepted. Per-task counts are in Per-task counts.