tf2_ros
master
This package contains the ROS bindings for the tf2 library, for both Python and C++.
|
Go to the documentation of this file.
30 #ifndef TF2_ROS__CREATE_TIMER_ROS_H_
31 #define TF2_ROS__CREATE_TIMER_ROS_H_
37 #include <rclcpp/rclcpp.hpp>
40 #include <unordered_map>
55 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base,
56 rclcpp::node_interfaces::NodeTimersInterface::SharedPtr node_timers);
72 rclcpp::Clock::SharedPtr clock,
73 const tf2::Duration & period,
121 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base_;
122 rclcpp::node_interfaces::NodeTimersInterface::SharedPtr node_timers_;
130 #endif // TF2_ROS__CREATE_TIMER_ROS_H_
TF2_ROS_PUBLIC void reset(const TimerHandle &timer_handle) override
Reset the timer.
Abstract interface for creating timers.
Definition: create_timer_interface.h:74
TF2_ROS_PUBLIC TimerHandle createTimer(rclcpp::Clock::SharedPtr clock, const tf2::Duration &period, TimerCallbackType callback) override
Create a new timer.
TF2_ROS_PUBLIC CreateTimerROS(rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base, rclcpp::node_interfaces::NodeTimersInterface::SharedPtr node_timers)
uint64_t TimerHandle
Definition: create_timer_interface.h:48
Create and manage ROS timers.
Definition: create_timer_ros.h:50
TF2_ROS_PUBLIC void cancel(const TimerHandle &timer_handle) override
Cancel a timer.
virtual ~CreateTimerROS()=default
Definition: async_buffer_interface.h:43
#define TF2_ROS_PUBLIC
Definition: visibility_control.h:58
TF2_ROS_PUBLIC void remove(const TimerHandle &timer_handle) override
Remove a timer.