🧪 New tutorials are being published — build from robot arms to sensors step by step
Skip to content

Teaching and Recording a Dataset - Handshake 200 ​

Create a Dataset Repo on HuggingFace ​

https://huggingface.co/new-dataset

imagepng

Delete any existing dataset with the same name (if any) ​

Shell
sudo rm -rf /Users/tommy/.cache/huggingface/lerobot/Tommymy/lerobot_my_dataset_shake200

Shake200 dataset collection ​

One camera, collect the dataset - Mac

Shell
lerobot-record \
    --robot.type=so101_follower \
    --robot.port=/dev/tty.usbmodem5AAF2193061 \
    --robot.id=my_follower_arm \
    --robot.cameras="{ front: {type: opencv, index_or_path: 0, width: 1920, height: 1080, fps: 60, fourcc: "MJPG"}}" \
    --teleop.type=so101_leader \
    --teleop.port=/dev/tty.usbmodem5AAF2194741 \
    --teleop.id=my_leader_arm \
    --display_data=true \
    --dataset.repo_id=Tommymy/lerobot_my_dataset_shake200 \
    --dataset.num_episodes=200 \
    --dataset.single_task="Shanke Hands" \
    --dataset.push_to_hub=false \
    --dataset.episode_time_s=12 \
    --dataset.reset_time_s=1

Collecting ​

imagepng

imagepng

Keyboard arrow key operations: → (right arrow) Terminate the current episode early; move on to the next episode. ← (left arrow) Cancel the current episode; record it again. ESC, stop immediately, encode the video, and upload the dataset.

After collection is complete, the dataset save directory ​

Shell
/Users/tommy/.cache/huggingface/lerobot/Tommymy/lerobot_my_dataset_shake200