Fix: emptying action queue between resets (#1117)

这个提交包含在:
Francesco Capuano
2025-05-22 21:37:21 +02:00
提交者 GitHub
父节点 8e2a394442
当前提交 6163daaaa4

查看文件

@ -243,6 +243,11 @@ def control_loop(
timestamp = 0 timestamp = 0
start_episode_t = time.perf_counter() 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: while timestamp < control_time_s:
start_loop_t = time.perf_counter() start_loop_t = time.perf_counter()