Generic timer templated on the clock type. Periodically executes a user-specified callback.  
 More...
#include <timer.hpp>
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr>
class rclcpp::timer::GenericTimer< FunctorT, Clock, std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * >
Generic timer templated on the clock type. Periodically executes a user-specified callback. 
 
◆ GenericTimer()
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
 
Default constructor. 
- Parameters
 - 
  
    | [in] | period | The interval at which the timer fires.  | 
    | [in] | callback | User-specified callback function.  | 
  
   
 
 
◆ ~GenericTimer()
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
 
 
◆ execute_callback()
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
 
 
◆ execute_callback_delegate() [1/2]
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
template<typename CallbackT  = FunctorT, typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, VoidCallbackType >::value >::type *  = nullptr> 
 
 
◆ execute_callback_delegate() [2/2]
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
template<typename CallbackT  = FunctorT, typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, TimerCallbackType >::value >::type *  = nullptr> 
 
 
◆ is_steady()
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
 
Is the clock steady (i.e. is the time between ticks constant?) 
- Returns
 - True if the clock used by this timer is steady. 
 
Implements rclcpp::timer::TimerBase.
 
 
◆ callback_
template<typename FunctorT, class Clock, typename std::enable_if<(rclcpp::function_traits::same_arguments< FunctorT, VoidCallbackType >::value||rclcpp::function_traits::same_arguments< FunctorT, TimerCallbackType >::value) &&Clock::is_steady >::type * = nullptr> 
 
 
The documentation for this class was generated from the following file: