# Recording format and frame alignment

bsln version: `0.0.1b40`

SDK source: `baseline-robotics/engineering@c8db8d9fbc8ce8e0524c5ee45cebdfcec34fc666:robotics/bsln`

Page source: `baseline-robotics/engineering@c8db8d9fbc8ce8e0524c5ee45cebdfcec34fc666:robotics/bsln/docs/customer/RECORDINGS.md`

[Read on the web](https://docs.baseline-robotics.com/recordings/) | [Markdown](https://docs.baseline-robotics.com/recordings.md) | [Documentation index](https://docs.baseline-robotics.com/llms.txt)

## Session bundle and episode files

A session bundle contains `report.json` and available episode directories. Each can contain `meta.json`, `steps.parquet`, `result.json`, `cameras/<camera>/<step>.jpg`, `depth/<camera>/<step>.png` and a Rerun file. `steps.jsonl` can remain if Parquet conversion did not finish. A short interactive session can end without an uploaded recording. Read the report notes.

## Metadata

Check `format` before interpreting a bundle. In format `bsln-episode/0.1`, `meta` identifies the episode, owning activity, robot type, timing, task and policy when recorded. Use `robot` for historical joint units, bounds and camera modes. Current station settings can differ.

## Episode result

`result.json` gives the execution outcome, recorded steps, safety counts and any errors. `success` is an independent task label and may be null. Use [report coverage](https://docs.baseline-robotics.com/results.md#read-both-the-task-rate-and-its-coverage) when comparing episodes.

## Step data

<a id="read-a-recording"></a>

`action.raw.<joint>` is requested, `action.safe.<joint>` is permitted and `obs.pos.<joint>` is measured before the action. Null values carry missing information. `t` uses the episode's monotonic clock. Subtract its first value for elapsed observation time. Use the [offline walkthrough](https://docs.baseline-robotics.com/recipes/explore-recording.md) to reproduce the sample plot.

## Associate a frame with a step

Join `cameras/front/000006.jpg` to `step == 6` in the same episode. A row index can differ from the step number. A step can have no image or reuse an earlier frame. The row timestamp describes the observation, and the camera exposure can differ. In an empty directory, download the [sample frame index](https://docs.baseline-robotics.com/downloads/results/synthetic-frame-index.json) and run the example locally:

```bash
curl -fsSLO https://docs.baseline-robotics.com/downloads/results/associate_frames.py &&
curl -fsSLO https://docs.baseline-robotics.com/downloads/results/synthetic-frame-index.json &&
uv run --no-project python associate_frames.py synthetic-frame-index.json
```

## Check completeness

<a id="preserve-enough-information-to-reproduce-an-analysis"></a>

Compare step counts and available rows, then inspect recording notes and `sink_errors`. Keep episode IDs, source files and the recorded joint and camera metadata when sharing an analysis.
