Manager for registering callbacks that are called after specified time of inactivity.
More...
#include <timeout_manager.hpp>
|
|
using | Callback = std::function<void(rclcpp::Time)> |
|
| | TimeoutManager2 (TimeoutManagerNodeInterfaces node_interfaces, std::chrono::nanoseconds update_period) |
| | Construct the timeout manager.
|
|
| ~TimeoutManager2 () |
| | Destructor.
|
|
| TimeoutManager2 (const TimeoutManager2 &)=delete |
| | TimeoutManager2 is not copyable.
|
|
TimeoutManager2 & | operator= (const TimeoutManager2 &)=delete |
| | TimeoutManager2 is not copyable.
|
|
| TimeoutManager2 (TimeoutManager2 &&) noexcept |
| | Move constructor.
|
|
TimeoutManager2 & | operator= (TimeoutManager2 &&) noexcept |
| | Move assignment.
|
| std::shared_ptr< TimeoutManagerHandle > | register_new (TimeoutManagerRegisterOptions options) |
| | Register a new timeout to be handled by this manager.
|
|
void | start_all () |
| | Start all timeouts managed by this manager.
|
|
void | pause_all () |
| | Stop all timeouts managed by this manager.
|
|
void | clear_deleted () |
| | Remove all timeouts for which the handles were already deleted.
|
|
|
class | internal::TimeoutManagerHandleKey |
Manager for registering callbacks that are called after specified time of inactivity.
◆ TimeoutManager2()
| mrs_lib::TimeoutManager2::TimeoutManager2 |
( |
TimeoutManagerNodeInterfaces | node_interfaces, |
|
|
std::chrono::nanoseconds | update_period ) |
|
explicit |
Construct the timeout manager.
- Parameters
-
| node_interfaces | ROS node interfaces to use by the timeout manager. |
| update_period | How often to check for the timeout expiration. |
◆ register_new()
Register a new timeout to be handled by this manager.
- Returns
- RAII handle to the timeout for managing it.
The documentation for this class was generated from the following files:
- /home/runner/work/mrs_lib/mrs_lib/include/mrs_lib/timeout_manager.hpp
- /home/runner/work/mrs_lib/mrs_lib/src/timeout_manager/timeout_manager2.cpp