How to collect robot demonstration data
Robot data collection is recording demonstrations of a task, usually by teleoperation, as episodes: synchronized camera frames, joint states and actions from the start of the task to its end, each labeled with the task and whether it succeeded. The quality and variety of these episodes decide how well the policy learns.
What an episode is
An episode is one attempt at a task, from a defined start to a defined end. It holds every camera stream, the robot's state (joint positions, gripper, sometimes forces) and the actions that were sent, all on one clock, plus the task instruction and the result. Policies such as action-chunking transformers and VLAs are trained on many such episodes.
How many demonstrations do you need?
It depends on the task and the model. Stanford's ACT work trained single fine-grained bimanual tasks from about 50 demonstrations each, and LeRobot's guides use around 50 episodes as a starting point for fine-tuning on a new task. Pretrained robot foundation models can need fewer task-specific episodes because they already know general skills, and long, varied tasks need more.
Variety matters more than raw count. Change object positions, lighting, backgrounds and the order of steps on purpose. Fifty episodes of the exact same scene teach the model one scene.
Quality rules
Keep demonstrations consistent: one operator style per task where possible, no long pauses, no corrections mid-move that the model will copy. Mark failed and aborted episodes instead of deleting them, because they are useful for evaluation and for finding where the task is hard. Record the camera streams at the same rate and resolution you will run the policy at.
Where the data goes next
Episodes are saved into a dataset format, see robot learning datasets, and then used to train or fine-tune a policy.
- A clear start and end for every episode
- Task instruction and success or failure recorded with it
- All cameras and joint states on one clock
- Variety on purpose: positions, lighting, backgrounds
- Failed episodes kept and labeled, not deleted
In the Development workbench, every camera is live and recorded and every sensor is graphed while your team collects demonstrations. Each demonstration can be marked as an episode with its task, duration and result, from the PhysicalFleet Python library (pf.episode_start(task) and pf.episode_end(task, success=...)) or, for robots that report their result on a ROS topic, with no code at all. You get success rate, duration and failures by step, per task and per hour.
How many demonstrations do I need to train a robot policy?
For a single task with a small policy such as ACT, about 50 good demonstrations is a common starting point. Pretrained VLAs can need fewer task-specific episodes, and long or highly varied tasks need more.
Should I keep failed demonstrations?
Keep them, labeled as failed. Most training pipelines leave them out, but they show where the task is hard and are useful for evaluating the policy and for methods that learn from failures.
What is an episode in robot learning?
One attempt at a task from start to end: the camera frames, robot states and actions recorded on one clock, with the task instruction and the result.
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go