forked from tangger/lerobot
Fix: emptying action queue between resets (#1117)
This commit is contained in:
committed by
GitHub
parent
8e2a394442
commit
6163daaaa4
@@ -243,6 +243,11 @@ def control_loop(
|
||||
|
||||
timestamp = 0
|
||||
start_episode_t = time.perf_counter()
|
||||
|
||||
# Controls starts, if policy is given it needs cleaning up
|
||||
if policy is not None:
|
||||
policy.reset()
|
||||
|
||||
while timestamp < control_time_s:
|
||||
start_loop_t = time.perf_counter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user