12 #ifndef SKYWAY_EVENT_SERVICE_H 13 #define SKYWAY_EVENT_SERVICE_H 15 #include <fruit/fruit.h> 17 #include <skyway/SkyWayEvents.h> 34 bool is_running_ =
true;
37 bool callback(skyway::SkyWayEvents::Request &req,
38 skyway::SkyWayEvents::Response &res);
43 ASSISTED(std::function<std::string()>) callback));
52 std::string, std::function<std::string()>)>;
fruit::Component< EventsServiceFactory > getEventsServiceComponent()
std::function< std::unique_ptr< EventsService >(std::string, std::function< std::string()>)> EventsServiceFactory
ros::ServiceServer service_
std::function< std::string()> callback_
virtual ~EventsService()=default
virtual void Shutdown() override