feat(robots): use read_latest() camera (#2987)

* feat(robots): use read_latest() camera

* fix(test): add read_latest reachy cam mock
This commit is contained in:
Steven Palma
2026-02-18 20:05:15 +01:00
committed by GitHub
parent aaf3707058
commit bc38261321
14 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class Camera(abc.ABC):
"""
pass
def read_latest(self, max_age_ms: int = 1000) -> NDArray[Any]:
def read_latest(self, max_age_ms: int = 500) -> NDArray[Any]:
"""Return the most recent frame captured immediately (Peeking).
This method is non-blocking and returns whatever is currently in the