Nav2 Navigation Stack - humble  humble
ROS 2 Navigation Stack
reinitialize_global_localization_service.cpp
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 #include <string>
16 #include "nav2_behavior_tree/plugins/action/reinitialize_global_localization_service.hpp"
17 
18 namespace nav2_behavior_tree
19 {
20 
22  const std::string & service_node_name,
23  const BT::NodeConfiguration & conf)
24 : BtServiceNode<std_srvs::srv::Empty>(service_node_name, conf)
25 {}
26 
27 } // namespace nav2_behavior_tree
28 
29 #include "behaviortree_cpp_v3/bt_factory.h"
30 BT_REGISTER_NODES(factory)
31 {
33  "ReinitializeGlobalLocalization");
34 }
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.