mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
|
TODO. More...
#include <timeout_manager.h>
Public Types | |
using | timeout_id_t = size_t |
using | callback_t = std::function< void(const ros::Time &)> |
Public Member Functions | |
TimeoutManager (const ros::NodeHandle &nh, const ros::Rate &update_rate) | |
TODO. More... | |
timeout_id_t | registerNew (const ros::Duration &timeout, const callback_t &callback, const ros::Time &last_reset=ros::Time::now(), const bool oneshot=false, const bool autostart=true) |
void | reset (const timeout_id_t id, const ros::Time &time=ros::Time::now()) |
void | pause (const timeout_id_t id) |
void | start (const timeout_id_t id, const ros::Time &time=ros::Time::now()) |
void | pauseAll () |
void | startAll (const ros::Time &time=ros::Time::now()) |
void | change (const timeout_id_t id, const ros::Duration &timeout, const callback_t &callback, const ros::Time &last_reset=ros::Time::now(), const bool oneshot=false, const bool autostart=true) |
ros::Time | lastReset (const timeout_id_t id) |
bool | started (const timeout_id_t id) |
TODO.
mrs_lib::TimeoutManager::TimeoutManager | ( | const ros::NodeHandle & | nh, |
const ros::Rate & | update_rate | ||
) |
TODO.