fix: precise_sleep is never called with negative value (#2757)

This commit is contained in:
Steven Palma
2026-01-06 20:09:43 +01:00
committed by GitHub
parent 963a3482fa
commit e2957d7783
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -432,7 +432,7 @@ for idx in range(dataset.num_frames):
}
robot.send_action(action)
precise_sleep(1.0 / dataset.fps - (time.perf_counter() - t0))
precise_sleep(max(1.0 / dataset.fps - (time.perf_counter() - t0), 0.0))
robot.disconnect()
```