forked from huggingface/lerobot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecord_data.sh
More file actions
executable file
·43 lines (41 loc) · 1.04 KB
/
Copy pathrecord_data.sh
File metadata and controls
executable file
·43 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# 设置HuggingFace用户名(可选,如果要上传)
export HF_USER=seeedstudio123
# 数据采集命令
lerobot-record \
--robot.type=so101_follower \
--robot.port=/dev/ttyACM0 \
--robot.id=my_awesome_follower_arm \
--robot.cameras="{
top: {
type: opencv,
index_or_path: /dev/video1,
width: 640,
height: 480,
fps: 30
},
front: {
type: opencv,
index_or_path: /dev/video11,
width: 640,
height: 480,
fps: 30
},
wrist: {
type: opencv,
index_or_path: /dev/video6,
width: 640,
height: 480,
fps: 30
}
}" \
--teleop.type=so101_leader \
--teleop.port=/dev/ttyACM3 \
--teleop.id=my_awesome_leader_arm \
--display_data=true \
--dataset.repo_id=${HF_USER}/grab_black_cube \
--dataset.num_episodes=5 \
--dataset.single_task="Grab the black cube" \
--dataset.push_to_hub=false \
--dataset.episode_time_s=30 \
--dataset.reset_time_s=30