Skip to main content
While you drive the arm, each demo is uploaded to the ZeroRuntime cloud. When you finish, the recording shows up in the dashboard under Robotics → Recordings. Cloud recording is billed to the token’s account. This is step 1 of Train a policy.

Record with the example scripts

The recording/ example lets you drive one SO-101 with another, and record each demo with a single key.
1

Fill in .env on both machines

Set your token, room id, serial ports and calibration ids. On the leader machine, also set the task:
.env
Every demo gets this label, and the policy learns this task. Use the same text for all demos of one task.
2

Name your cameras

In follower.py, give each camera a name in CAMERA_PORTS. Run ls /dev/v4l/by-path to find the ports.
follower.py
Note these names. You need the same names when you run the policy later. If a camera is missing, the script won’t start.
3

Check two settings

At the top of follower.py:
4

Start both scripts

On the robot machine:
On the leader machine:
5

Record with single keys

In the leader’s terminal, press a key (no Enter needed):You can keep driving between demos. Reset the scene, move the arm back, then press n again.
After you quit, open Robotics → Recordings in the dashboard to see the recording. Next step: make a dataset.

Record from your own code

Turn it on when you create the follower:
str
Starts recording when the session starts. Needed for cloud recording.
bool
default:"False"
Uploads the recording to the cloud. Needs a room id.
float
default:"90.0"
How long to wait for the cloud recorder to start. After this, the state becomes failed.
By default, a demo starts when you press the deadman and ends when you let go. To add a task label, start and end demos yourself. See Recording. Recordings go to the storage set for your account on the API keys page.

States

follower.cloud_recording_state tells you what the recorder is doing. Demos can’t start while the state is requested or starting. start_episode() returns None and logs the reason.
If the state becomes failed, you can keep driving, but new demos won’t reach the dashboard. Watch on_recording_state so you notice.

Events

once, when ready
The recorder is running.
on every change
The new state, with a reason when there is one. Good for showing on the operator’s screen.

On the leader

The first time you arm, arm_when_aligned() waits a few seconds for the recorder to start. This is on purpose, so you don’t start a demo that can’t be recorded. leader.cloud_recording_state shows the recorder’s state as None, "starting", "running" or "failed":
Give timeout enough time for the recorder to start. With no timeout, arm_when_aligned() can wait forever. Too short, and it raises NotAligned.
The leader can also start and end demos:

Datasets

Next: turn the recording into a dataset.

Recording

How recording and demos work.