#include <timer.hpp>
◆ TimerBase()
rclcpp::timer::TimerBase::TimerBase |
( |
std::chrono::nanoseconds |
period | ) |
|
|
explicit |
◆ ~TimerBase()
rclcpp::timer::TimerBase::~TimerBase |
( |
| ) |
|
◆ cancel()
void rclcpp::timer::TimerBase::cancel |
( |
| ) |
|
◆ reset()
void rclcpp::timer::TimerBase::reset |
( |
| ) |
|
◆ execute_callback()
virtual void rclcpp::timer::TimerBase::execute_callback |
( |
| ) |
|
|
pure virtual |
◆ get_timer_handle()
const rcl_timer_t* rclcpp::timer::TimerBase::get_timer_handle |
( |
| ) |
|
◆ time_until_trigger()
std::chrono::nanoseconds rclcpp::timer::TimerBase::time_until_trigger |
( |
| ) |
|
Check how long the timer has until its next scheduled callback.
- Returns
- A std::chrono::duration representing the relative time until the next callback.
◆ is_steady()
virtual bool rclcpp::timer::TimerBase::is_steady |
( |
| ) |
|
|
pure virtual |
◆ is_ready()
bool rclcpp::timer::TimerBase::is_ready |
( |
| ) |
|
Check if the timer is ready to trigger the callback.
This function expects its caller to immediately trigger the callback after this function, since it maintains the last time the callback was triggered.
- Returns
- True if the timer needs to trigger.
◆ timer_handle_
The documentation for this class was generated from the following file: