Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
reinitialize_global_localization_service.hpp
1 // Copyright (c) 2019 Samsung Research America
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_BEHAVIOR_TREE__PLUGINS__ACTION__REINITIALIZE_GLOBAL_LOCALIZATION_SERVICE_HPP_
16 #define NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__REINITIALIZE_GLOBAL_LOCALIZATION_SERVICE_HPP_
17 
18 #include <string>
19 
20 #include "nav2_behavior_tree/bt_service_node.hpp"
21 #include "std_srvs/srv/empty.hpp"
22 #include "nav2_ros_common/lifecycle_node.hpp"
23 
24 namespace nav2_behavior_tree
25 {
26 
32 class ReinitializeGlobalLocalizationService : public BtServiceNode<std_srvs::srv::Empty>
33 {
34 public:
41  const std::string & service_node_name,
42  const BT::NodeConfiguration & conf);
43 };
44 
45 } // namespace nav2_behavior_tree
46 
47 #endif // NAV2_BEHAVIOR_TREE__PLUGINS__ACTION__REINITIALIZE_GLOBAL_LOCALIZATION_SERVICE_HPP_
Abstract class representing a service based BT node.
A nav2_behavior_tree::BtServiceNode class that wraps nav2_msgs::srv::Empty.
ReinitializeGlobalLocalizationService(const std::string &service_node_name, const BT::NodeConfiguration &conf)
A constructor for nav2_behavior_tree::ReinitializeGlobalLocalizationService.