2626#include " rclcpp/executors/timers_manager.hpp"
2727#include " rclcpp/node.hpp"
2828
29- #include " rmw/executor_event_types .h"
29+ #include " rmw/listener_event_types .h"
3030
3131namespace rclcpp
3232{
@@ -176,13 +176,13 @@ class EventsExecutor : public rclcpp::Executor
176176
177177 // Event queue implementation is a deque only to
178178 // facilitate the removal of events from expired entities.
179- using EventQueue = std::deque<ExecutorEvent >;
179+ using EventQueue = std::deque<rmw_listener_event_t >;
180180
181181 // Executor callback: Push new events into the queue and trigger cv.
182182 // This function is called by the DDS entities when an event happened,
183183 // like a subscription receiving a message.
184184 static void
185- push_event (const void * executor_ptr, ExecutorEvent event)
185+ push_event (const void * executor_ptr, rmw_listener_event_t event)
186186 {
187187 // Cast executor_ptr to this (need to remove constness)
188188 auto this_executor = const_cast <executors::EventsExecutor *>(
@@ -217,7 +217,7 @@ class EventsExecutor : public rclcpp::Executor
217217 event_queue_.erase (
218218 std::remove_if (
219219 event_queue_.begin (), event_queue_.end (),
220- [&entity](ExecutorEvent event) {return event.entity == entity;}), event_queue_.end ());
220+ [&entity](rmw_listener_event_t event) {return event.entity == entity;}), event_queue_.end ());
221221 }
222222
223223 // Remove events associated with this entity from the local event queue
@@ -226,7 +226,7 @@ class EventsExecutor : public rclcpp::Executor
226226 execution_event_queue_.erase (
227227 std::remove_if (
228228 execution_event_queue_.begin (), execution_event_queue_.end (),
229- [&entity](ExecutorEvent event) {
229+ [&entity](rmw_listener_event_t event) {
230230 return event.entity == entity;
231231 }), execution_event_queue_.end ());
232232 }
@@ -240,7 +240,7 @@ class EventsExecutor : public rclcpp::Executor
240240 // Execute a single event
241241 RCLCPP_PUBLIC
242242 void
243- execute_event (const ExecutorEvent & event);
243+ execute_event (const rmw_listener_event_t & event);
244244
245245 // We use two instances of EventQueue to allow threads to push events while we execute them
246246 EventQueue event_queue_;
0 commit comments