15 #ifndef RCLCPP__QOS_EVENT_HPP_ 16 #define RCLCPP__QOS_EVENT_HPP_ 64 get_number_of_ready_events()
override;
81 template<
typename EventCallbackT>
85 template<
typename InitFuncT,
typename ParentHandleT,
typename EventTypeEnum>
87 const EventCallbackT & callback,
89 ParentHandleT parent_handle,
90 EventTypeEnum event_type)
91 : event_callback_(callback)
94 rcl_ret_t ret = init_func(&event_handle_, parent_handle, event_type);
104 EventCallbackInfoT callback_info;
114 event_callback_(callback_info);
121 EventCallbackT event_callback_;
126 #endif // RCLCPP__QOS_EVENT_HPP_ #define rcl_get_error_string
size_t wait_set_event_index_
Definition: qos_event.hpp:78
Definition: function_traits.hpp:49
Contains callbacks for various types of events a Publisher can receive from the middleware.
Definition: qos_event.hpp:42
rcl_ret_t rcl_take_event(const rcl_event_t *event, void *event_info)
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
QOSLivelinessLostCallbackType liveliness_callback
Definition: qos_event.hpp:45
QOSLivelinessChangedCallbackType liveliness_callback
Definition: qos_event.hpp:52
void throw_from_rcl_error(rcl_ret_t ret, const std::string &prefix="", const rcl_error_state_t *error_state=nullptr, void(*reset_error)()=rcl_reset_error)
Throw a C++ std::exception which was created based on an rcl error.
QOSDeadlineRequestedCallbackType deadline_callback
Definition: qos_event.hpp:51
Definition: qos_event.hpp:55
#define RCUTILS_LOG_ERROR_NAMED(name,...)
Definition: qos_event.hpp:82
QOSDeadlineOfferedCallbackType deadline_callback
Definition: qos_event.hpp:44
void execute() override
Execute any entities of the Waitable that are ready.
Definition: qos_event.hpp:102
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Definition: waitable.hpp:26
rcl_event_t event_handle_
Definition: qos_event.hpp:77
rcl_event_t rcl_get_zero_initialized_event(void)
Contains callbacks for non-message events that a Subscription can receive from the middleware...
Definition: qos_event.hpp:49
QOSEventHandler(const EventCallbackT &callback, InitFuncT init_func, ParentHandleT parent_handle, EventTypeEnum event_type)
Definition: qos_event.hpp:86