> ## Documentation Index
> Fetch the complete documentation index at: https://docs.almond.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# mcap.synthetic

> Write sample MCAP episodes from the sim, to try a data pipeline without a robot.

`axol mcap.synthetic` writes two sample episodes of Axol on Jelly with the Camera Kit, made in the sim. Use them to build and test a data pipeline before you have recordings from a robot. See [MCAP Recording](https://docs.almond.bot/operations/mcap.md).

```bash theme={null}
axol mcap.synthetic ~/mcap-sample
```

It writes these files to the folder:

| File | What it holds |
| - | - |
| `episode_000000.mcap` | The right arm puts a red cube in a bin. The episode uses a camera calibration, with arm joint offsets. |
| `episode_000001.mcap` | The left arm moves a blue cup next to the bin. The episode has no camera calibration, so its camera mounts come from CAD. |
| `camera_calibration.json` | The camera calibration the first episode uses. |

Each episode has the topics, metadata and format of an episode from Collect data:

* video from the head camera's two eyes and both wrist cameras, rendered from where each camera is and through its lens;
* joints, commands, the head camera's IMU, Jelly's odometry, wheels and lift, and the headset input;
* the transform tree, `camera_info` and calibration metadata.

The cameras, serial numbers and calibration are made up. Each episode's `custom` metadata has `synthetic=true`.

Rendering takes about 20 minutes per 15-second episode at HD1200 and 60 fps on an 8-core computer.

| Option | Default | What it does |
| - | - | - |
| `--duration` | `15` | Seconds per episode. |
| `--fps` | `60` | Camera frame rate. |
| `--resolution` | `HD1200` | `HD1200` (1920 x 1200) or `SVGA` (960 x 600). |
| `--codec` | `h264` | Video codec: `h264` or `h265`. |
| `--quality` | `24` | Encoder quality. Lower is sharper and larger. |
| `--workers` | `4` | Processes that render video. |
| `--topic_names` | empty | Topic renames, written like **MCAP topic names**. |
| `--frame_names` | empty | Frame renames, written like **MCAP frame names**. |
| `--episode_metadata` | empty | `key=value` pairs, written like **Episode metadata**. |

For example, to match a pipeline that uses its own names:

```bash theme={null}
axol mcap.synthetic ~/mcap-sample --codec h265 \
  --topic_names "/head/left/video=/cameras/head_left/compressed" \
  --frame_names "root=torso"
```

The command renders offscreen with MuJoCo and encodes with PyAV, which come with the `lerobot` extra. On a computer without a GPU, it renders in software.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.