We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73489f7 commit 1ee58b3Copy full SHA for 1ee58b3
record_episodes.py
@@ -12,8 +12,10 @@
12
# parse the task name via command line
13
parser = argparse.ArgumentParser()
14
parser.add_argument('--task', type=str, default='task1')
15
+parser.add_argument('--num_episodes', type=int, default=1)
16
args = parser.parse_args()
17
task = args.task
18
+num_episodes = args.num_episodes
19
20
cfg = TASK_CONFIG
21
@@ -47,7 +49,7 @@ def capture_image(cam):
47
49
leader.set_trigger_torque()
48
50
51
- for i in range(cfg['num_episodes']):
52
+ for i in range(num_episodes):
53
# bring the follower to the leader and start camera
54
for i in range(200):
55
follower.set_goal_pos(leader.read_position())
0 commit comments