Nav2 Navigation Stack - kilted  kilted
ROS 2 Navigation Stack
clear_entirely_costmap_service_client.hpp
1 // Copyright (c) 2019 Intel Corporation
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_UTIL__CLEAR_ENTIRELY_COSTMAP_SERVICE_CLIENT_HPP_
16 #define NAV2_UTIL__CLEAR_ENTIRELY_COSTMAP_SERVICE_CLIENT_HPP_
17 
18 #include <string>
19 #include "nav2_util/service_client.hpp"
20 #include "std_srvs/srv/empty.hpp"
21 #include "nav2_msgs/srv/clear_entire_costmap.hpp"
22 
23 namespace nav2_util
24 {
30  : public nav2_util::ServiceClient<nav2_msgs::srv::ClearEntireCostmap>
31 {
32 public:
36  explicit ClearEntirelyCostmapServiceClient(const std::string & service_name)
37  : nav2_util::ServiceClient<nav2_msgs::srv::ClearEntireCostmap>(service_name)
38  {
39  }
40 
41  using clearEntirelyCostmapServiceRequest =
42  nav2_util::ServiceClient<nav2_msgs::srv::ClearEntireCostmap>::RequestType;
43  using clearEntirelyCostmapServiceResponse =
44  nav2_util::ServiceClient<nav2_msgs::srv::ClearEntireCostmap>::ResponseType;
45 };
46 
47 } // namespace nav2_util
48 
49 #endif // NAV2_UTIL__CLEAR_ENTIRELY_COSTMAP_SERVICE_CLIENT_HPP_
ClearEntirelyCostmapServiceClient(const std::string &service_name)
A constructor for nav2_util::ClearEntirelyCostmapServiceClient.
A simple wrapper on ROS2 services client.