synchros2.clock module
- synchros2.clock.wait_for(event: Event, *, clock: rclpy.clock.Clock | None = None, timeout_sec: float | None = None) bool[source]
Wait for event to be set.
A threading.Event.wait() equivalent that is clock aware.
- Parameters:
event – event to wait on.
clock – optional clock to use for timeout waits, waits on system clock by default.
timeout_sec – optional timeout for wait, wait indefinitely by default.
- Returns:
True if event is set, False on timeout.