sim2bot.RobotState.latency¶
latency: Optional[float]
property
¶
Return the current telemetry age in seconds.
Returns:
-
Optional[float]–Seconds since browser capture, or
Nonewhen the packet did not -
Optional[float]–include a capture timestamp.
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Print telemetry age
Reject stale state
Guidance¶
Important behavior
Latency is an observed wall-clock age, not a deterministic control-cycle guarantee.