DoorTimer.hh
This library is part of the Ignition Robotics project.
Information passed to systems on the update callback.
Definition: include/gz/sim/Types.hh:37
Timer that's used to keep a door open. It has a configurable default wait duration that when exceeded...
Definition: DoorTimer.hh:49
void Update(const UpdateInfo &_info, bool _isDoorwayBlocked)
Checks whether the timer has timed out.
~DoorTimer()
Destructor.
void Configure(const std::chrono::steady_clock::duration &_startTime, const std::function< void()> &_timeoutCallback)
Starts the timer and sets the timeout time based on the given start time.
DoorTimer(const std::chrono::steady_clock::duration &_waitDuration)
Constructor.