Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
trigger_event.hpp
1 // Copyright (c) 2025 Open Navigation LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef NAV2_ROUTE__PLUGINS__ROUTE_OPERATIONS__TRIGGER_EVENT_HPP_
16 #define NAV2_ROUTE__PLUGINS__ROUTE_OPERATIONS__TRIGGER_EVENT_HPP_
17 
18 #include <memory>
19 #include <chrono>
20 #include <string>
21 
22 #include "rclcpp/rclcpp.hpp"
23 #include "rclcpp_lifecycle/lifecycle_node.hpp"
24 #include "nav2_route/interfaces/route_operation.hpp"
25 #include "nav2_core/route_exceptions.hpp"
26 #include "nav2_ros_common/node_utils.hpp"
27 #include "std_srvs/srv/trigger.hpp"
28 #include "nav2_route/plugins/route_operation_client.hpp"
29 
30 namespace nav2_route
31 {
32 
45 class TriggerEvent : public RouteOperationClient<std_srvs::srv::Trigger>
46 {
47 public:
51  TriggerEvent() = default;
52 
56  virtual ~TriggerEvent() = default;
57 };
58 
59 } // namespace nav2_route
60 
61 #endif // NAV2_ROUTE__PLUGINS__ROUTE_OPERATIONS__TRIGGER_EVENT_HPP_
A route operation base class to trigger a service event at a node or edge. This is meant to be named ...
A route operation to trigger an event at a node or edge. This operation is meant to be named accordin...
TriggerEvent()=default
Constructor.
virtual ~TriggerEvent()=default
destructor