Template Function rclcpp::create_timer(std::shared_ptr<node_interfaces::NodeBaseInterface>, std::shared_ptr<node_interfaces::NodeTimersInterface>, rclcpp::Clock::SharedPtr, rclcpp::Duration, CallbackT&&, rclcpp::CallbackGroup::SharedPtr, bool)
Defined in File create_timer.hpp
Function Documentation
-
template<typename CallbackT>
rclcpp::TimerBase::SharedPtr rclcpp::create_timer(std::shared_ptr<node_interfaces::NodeBaseInterface> node_base, std::shared_ptr<node_interfaces::NodeTimersInterface> node_timers, rclcpp::Clock::SharedPtr clock, rclcpp::Duration period, CallbackT &&callback, rclcpp::CallbackGroup::SharedPtr group = nullptr, bool autostart = true) Create a timer with a given clock