|
mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
|
Options for creating a ROS-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. | |
| std::shared_ptr< rclcpp::CallbackGroup > | callback_group = nullptr |
| Callback group in which the timer callback should be executed. | |
Options for creating a ROS-based timer.
When configuring timer with these options, it will use rclcpp::Timer internally. (See mrs_lib::Timer documentation for differences in implementations.)
| std::shared_ptr<rclcpp::CallbackGroup> mrs_lib::RosTimerOptions::callback_group = nullptr |
Callback group in which the timer callback should be executed.
If nullptr, the default callback group is used.
| bool mrs_lib::RosTimerOptions::oneshot = false |
Whether the timer should execute its callback only once.
If true, the timer stops after exactly one callback is executed.