rclcpp  master
C++ ROS Client Library API
parameter_service.hpp
Go to the documentation of this file.
1 // Copyright 2015 Open Source Robotics Foundation, Inc.
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 RCLCPP__PARAMETER_SERVICE_HPP_
16 #define RCLCPP__PARAMETER_SERVICE_HPP_
17 
18 #include <string>
19 
20 #include "rcl_interfaces/srv/describe_parameters.hpp"
21 #include "rcl_interfaces/srv/get_parameter_types.hpp"
22 #include "rcl_interfaces/srv/get_parameters.hpp"
23 #include "rcl_interfaces/srv/list_parameters.hpp"
24 #include "rcl_interfaces/srv/set_parameters.hpp"
25 #include "rcl_interfaces/srv/set_parameters_atomically.hpp"
26 #include "rclcpp/executors.hpp"
27 #include "rclcpp/macros.hpp"
28 #include "rclcpp/node.hpp"
29 #include "rclcpp/parameter.hpp"
31 #include "rmw/rmw.h"
32 
33 namespace rclcpp
34 {
35 namespace parameter_service
36 {
37 
39 {
40 public:
42 
44  explicit ParameterService(
45  const rclcpp::node::Node::SharedPtr node,
46  const rmw_qos_profile_t & qos_profile = rmw_qos_profile_parameters);
47 
48 private:
49  const rclcpp::node::Node::SharedPtr node_;
52  get_parameter_types_service_;
55  set_parameters_atomically_service_;
57  describe_parameters_service_;
59 };
60 
61 } // namespace parameter_service
62 } // namespace rclcpp
63 
64 #endif // RCLCPP__PARAMETER_SERVICE_HPP_
Definition: service.hpp:89
Definition: allocator_common.hpp:24
ParameterService(const rclcpp::node::Node::SharedPtr node, const rmw_qos_profile_t &qos_profile=rmw_qos_profile_parameters)
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
Definition: parameter_service.hpp:38
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50