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

Options for creating a thread-based timer. More...

#include <timer.hpp>

Public Attributes

TimerNodeInterfaces node_interfaces
 ROS node interfaces used by the timer.
bool autostart = true
 Whether the timer should start automatically after construction.
bool oneshot = false
 Whether the timer should execute its callback only once.

Detailed Description

Options for creating a thread-based timer.

These options configure a timer that runs on a separate thread. (See mrs_lib::Timer documentation for differences in implementations.)

Member Data Documentation

◆ oneshot

bool mrs_lib::ThreadTimerOptions::oneshot = false

Whether the timer should execute its callback only once.

If true, the timer stops after exactly one callback is executed.


The documentation for this struct was generated from the following file:
  • /home/runner/work/mrs_lib/mrs_lib/include/mrs_lib/timer.hpp