Template Class WallTimer

Inheritance Relationships

Base Type

Class Documentation

template<typename FunctorT, typename std::enable_if<rclcpp::function_traits::same_arguments<FunctorT, VoidCallbackType>::value || rclcpp::function_traits::same_arguments<FunctorT, TimerCallbackType>::value>::type* = nullptr>
class WallTimer : public rclcpp::GenericTimer<FunctorT>

Public Functions

inline WallTimer(std::chrono::nanoseconds period, FunctorT &&callback, rclcpp::Context::SharedPtr context)

Wall timer constructor.

  • period – The interval at which the timer fires

  • callback – The callback function to execute every interval

  • context – node context