mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
Loading...
Searching...
No Matches
mrs_lib::TimeoutManager Class Reference

Public Types

using timeout_id_t = size_t
 
using callback_t = std::function< void(const rclcpp::Time &)>
 

Public Member Functions

 TimeoutManager (const std::shared_ptr< rclcpp::Node > &node, const rclcpp::Rate &update_rate)
 
timeout_id_t registerNew (const rclcpp::Duration &timeout, const callback_t &callback, const rclcpp::Time &last_reset, const bool oneshot=false, const bool autostart=true)
 
void reset (const timeout_id_t id, const rclcpp::Time &time)
 
void pause (const timeout_id_t id)
 
void start (const timeout_id_t id, const rclcpp::Time &time)
 
void pauseAll ()
 
void startAll ()
 
void change (const timeout_id_t id, const rclcpp::Duration &timeout, const callback_t &callback, const rclcpp::Time &last_reset, const bool oneshot=false, const bool autostart=true)
 
rclcpp::Time lastReset (const timeout_id_t id)
 
bool started (const timeout_id_t id)
 

The documentation for this class was generated from the following files: