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 || rclcpp::function_traits::same_arguments<FunctorT, TimerInfoCallbackType>::value>::type* = nullptr>
class WallTimer : public rclcpp::GenericTimer<FunctorT>

Public Functions

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

Wall timer constructor.

Parameters:
  • period – The interval at which the timer fires

  • callback – The callback function to execute every interval

  • context – node context

  • autostart – timer state on initialization