fix(recording): re-recording episode doesn't increase count of recording episodes (#1395)

这个提交包含在:
Steven Palma
2025-06-27 16:02:51 +02:00
提交者 GitHub
父节点 2f9ba4e2cc
当前提交 69901b9b6a
共有 2 个文件被更改,包括 6 次插入 和 9 次删除

查看文件

@ -226,7 +226,8 @@ _init_rerun(session_name="recording")
robot.connect()
teleop.connect()
for episode_idx in range(NUM_EPISODES):
episode_idx = 0
while episode_idx < NUM_EPISODES and not events["stop_recording"]:
log_say(f"Recording episode {episode_idx + 1} of {NUM_EPISODES}")
record_loop(
@ -261,10 +262,7 @@ for episode_idx in range(NUM_EPISODES):
continue
dataset.save_episode()
if events["stop_recording"]:
log_say("Exiting session")
break
episode_idx += 1
# Clean up
log_say("Stop recording")