Template Class GenericTimer
Defined in File agnocast_timer.hpp
Inheritance Relationships
Base Type
public agnocast::TimerBase(Class TimerBase)
Derived Type
public agnocast::WallTimer< FunctorT >(Template Class WallTimer)
Class Documentation
-
template<typename FunctorT>
class GenericTimer : public agnocast::TimerBase Timer that fires periodically using a user-provided clock.
The callback signature is detected at compile time: if the functor accepts a
TimerBase&argument it receives a reference to this timer, otherwise it is called with no arguments.- Template Parameters:
FunctorT – Callback type; must be invocable as
void()orvoid(TimerBase&).
Subclassed by agnocast::WallTimer< FunctorT >
Public Functions
-
inline virtual void execute_callback() override
- inline virtual AGNOCAST_PUBLIC bool is_steady () const override
Return whether this timer uses a steady clock.
- Returns:
True if the clock is steady.
- inline virtual AGNOCAST_PUBLIC rclcpp::Clock::SharedPtr get_clock () const override
Get the clock associated with this timer.
- Returns:
Shared pointer to the clock.