Delivery format
RLDS format for robot training data
RLDS means Reinforcement Learning Datasets. It represents a dataset of episodes, with each episode containing a dataset of steps. is_first and is_last are mandatory step flags. Observation, action, reward and discount are not six universally mandatory fields: inspect the documented optional fields and your consumer's requirements. Every step within a dataset must share the same field set, even where a field's value is invalid at a boundary.
Quick facts
- Mandatory flags
- is_first and is_last
- Optional fields
- Document observation, action, reward, discount and episode metadata for the consumer; preserve the same step-field set within one dataset.
- Last step
- Subsequent action, reward and discount are invalid; placeholders do not become commands. Terminal is not task success.
Inspect a delivered episode
Illustrative terminal episode, not executed:
For the truncated variant set the final is_terminal=false. A terminal observation may itself be meaningless depending on the environment. is_last indicates the episode boundary; it is not a task-success label. If a serializer keeps action-shaped placeholder values to preserve a common field set, the consumer must mask their invalid semantics. [1]
| Step | Observation | Action semantics | Flags |
|---|---|---|---|
| 0 | o0 | a0 acts on o0 | is_first=true; is_last=false |
| 1 | o1 | a1 acts on o1 | is_first=false; is_last=false |
| 2 | o2 | No valid subsequent action/reward/discount | is_first=false; is_last=true; is_terminal=true |
Acceptance record to complete before use
Normative inspection aid:
RLDS recommends episode_id as an optional identifier; the invalid episode flag is also optional and can mark incomplete recordings. These are not universal requirements for timestamps, task labels or success flags. Specify any additional fields needed by your own consumer separately. [1]
| Check | Record | HOLD if |
|---|---|---|
| Boundary flags | First and last step positions, terminal/truncated interpretation | Missing flags or conflicting boundaries |
| Field consistency | Same field names across steps; optional field meanings | Schema varies within the dataset without an agreed representation |
| Action pairing | a0 corresponds to o0 in loaded RLDS | Recorder convention or an extra shift is unresolved |
| Last step | Consumer treatment of invalid subsequent fields | Placeholder values can reach action loss or execution |
| Episode metadata | Episode ID if supplied, task outcome and source/revision | Task success is inferred from is_last rather than independent evidence |
Recorder alignment matters
The upstream README shows a dm_env-style recording as (o0, no prior action), then (o1,a0), then (o2,a1). Loaded RLDS shifts the action to the observation it acts on. Inspect whether your input is raw recorder output or already aligned RLDS before applying any shift. [1]
Related pages
Use these to move from category-level context into specific task, dataset, format, and comparison detail.
External references and source context
- RLDS README (moving main branch)
RLDS episode/step model, mandatory boundary flags, optional fields, common field set, invalid final-step values and recorder alignment.
GitHub ↩
FAQ
Does is_terminal mean success?
No. It marks a terminal state; task success needs its own documented label.
Must every step have action/reward/discount?
Those fields are optional in the specification. A dataset still needs a consistent step-field set, and final-step values after the last observation are invalid.
What should I do with an incomplete episode?
Record the incomplete condition and the consumer's exclusion policy, using the optional invalid episode flag where appropriate; do not repair missing actions by guessing.
Was the inspection example executed?
No. The terminal episode is illustrative, not executed. If a serializer keeps action-shaped placeholder values to preserve a common field set, the consumer must mask their invalid semantics. is_last is an episode boundary, not a task-success label.
Working with RLDS format
TrueLabel is the software platform for data providers, labs, and robotics companies that run their own capture operations, taking capture devices through processing to high-quality training and alignment data.