-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbi_record.sh
More file actions
executable file
·48 lines (44 loc) · 1.76 KB
/
bi_record.sh
File metadata and controls
executable file
·48 lines (44 loc) · 1.76 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
44
45
46
47
48
#!/bin/bash
TEST_NUMBER=$1
EPISODES=$2
if [ -z "$TEST_NUMBER" ] || [ -z "$EPISODES" ]; then
echo "Usage: $0 <test_number> <episodes>"
exit 1
fi
# Bimanual Screwdriver Robot Recording
# Left arm: Screwdriver follower + leader
# Right arm: Regular Koch follower + leader
python -m assembler0.scripts.bi_record \
--left_robot_port=/dev/servo_5837053138 \
--right_robot_port=/dev/ttyACM3 \
--robot_id=bi_koch_screwdriver_follower_testing \
--left_robot_id=koch_screwdriver_follower_testing \
--right_robot_id=koch_magnetic_follower_testing \
--left_leader_port=/dev/servo_585A007782 \
--right_leader_port=/dev/ttyACM2 \
--leader_id=bi_koch_screwdriver_leader_testing \
--left_leader_id=koch_screwdriver_leader_testing \
--right_leader_id=koch_magnetic_leader_testing \
--screwdriver_camera=/dev/video0 \
--side_camera=/dev/video2 \
--top_camera=/dev/video6 \
--camera_width=800 \
--camera_height=600 \
--camera_fps=30 \
--fps=30 \
--left_screwdriver_current_limit=300 \
--left_clutch_ratio=0.5 \
--left_clutch_cooldown_s=1.0 \
--left_gripper_open_pos=50.0 \
--left_haptic_range=4.0 \
--right_gripper_open_pos=50.0 \
--dataset_repo_id=jackvial/screwdriver_bi_manual_test_${TEST_NUMBER}_e${EPISODES} \
--num_episodes=${EPISODES} \
--episode_time_s=12 \
--reset_time_s=5 \
--encode_videos_after=true \
--push_to_hub=false \
--single_task="Left arm: Move towards the silver screw in the orange panel. Then place the screwdriver bit on the screw, and turn the screwdriver bit clockwise until the screw is has been fully screwed in. Right arm: Assist and stabilize the workpiece during the screwing task." \
--display_data=false \
--play_sounds=false \
--log_level=INFO