15 #ifndef RCLCPP__NODE_INTERFACES__GET_NODE_TIMERS_INTERFACE_HPP_ 16 #define RCLCPP__NODE_INTERFACES__GET_NODE_TIMERS_INTERFACE_HPP_ 20 #include <type_traits> 37 namespace node_interfaces
46 template<
typename NodeType,
typename ReturnType>
64 using type = decltype(check<NodeType>(
nullptr));
65 static constexpr
bool value = type::value;
87 return node_pointer->get_node_timers_interface().get();
94 typename std::remove_pointer<NodeType>::type,
101 return node_pointer->get_node_timers_interface();
149 #endif // RCLCPP__NODE_INTERFACES__GET_NODE_TIMERS_INTERFACE_HPP_ Definition: get_node_timers_interface.hpp:47
rclcpp::node_interfaces::NodeTimersInterface * get_node_timers_interface_from_pointer(rclcpp::node_interfaces::NodeTimersInterface *pointer)
Definition: get_node_timers_interface.hpp:71
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
rclcpp::node_interfaces::NodeTimersInterface * get_node_timers_interface(NodeType node_pointer)
Get the NodeTimersInterface as a pointer from a pointer to a "Node like" object.
Definition: get_node_timers_interface.hpp:126
static constexpr bool value
Definition: get_node_timers_interface.hpp:65
Pure virtual interface class for the NodeTimers part of the Node API.
Definition: node_timers_interface.hpp:29
decltype(check< NodeType >(nullptr)) type
Definition: get_node_timers_interface.hpp:64