|
15 | 15 | #ifndef RCLCPP__PARAMETER_DESCRIPTOR_WRAPPER_HPP_ |
16 | 16 | #define RCLCPP__PARAMETER_DESCRIPTOR_WRAPPER_HPP_ |
17 | 17 |
|
18 | | -// Standard library includes |
| 18 | +// C++ Standard library includes |
19 | 19 | #include <functional> |
20 | 20 | #include <utility> |
21 | 21 | #include <memory> |
@@ -60,23 +60,24 @@ class ParameterDescription |
60 | 60 | // Need the current node in order to begin the configuration state |
61 | 61 | // for it via the declare_parameter function which setups the Node |
62 | 62 | template<typename ParameterType> |
63 | | - ParameterDescription & |
64 | | - DeclareParameter(ParameterType default_value, rclcpp::Node::SharedPtr required_node_ptr) |
65 | | - { |
66 | | - required_node_ptr->declare_parameter<ParameterType>( |
67 | | - parameter_descriptor.name, default_value, |
68 | | - parameter_descriptor); |
69 | | - return *this; |
70 | | - } |
| 63 | + ParameterDescription & DeclareParameter( |
| 64 | + ParameterType default_value, |
| 65 | + rclcpp::Node::SharedPtr required_node_ptr) |
| 66 | + { |
| 67 | + required_node_ptr->declare_parameter<ParameterType>( |
| 68 | + parameter_descriptor.name, default_value, |
| 69 | + parameter_descriptor); |
| 70 | + return *this; |
| 71 | + } |
71 | 72 |
|
72 | 73 | template<typename ParameterType> |
73 | 74 | ParameterDescription & DeclareParameter( |
74 | 75 | ParameterType default_value, |
75 | 76 | rclcpp_lifecycle::LifecycleNode::SharedPtr required_node_ptr) |
76 | 77 | { |
77 | | - required_node_ptr->declare_parameter<ParameterType> |
78 | | - (parameter_descriptor.name, default_value, |
79 | | - parameter_descriptor); |
| 78 | + required_node_ptr->declare_parameter<ParameterType>( |
| 79 | + parameter_descriptor.name, default_value, |
| 80 | + parameter_descriptor); |
80 | 81 | return *this; |
81 | 82 | } |
82 | 83 |
|
@@ -159,6 +160,7 @@ class ParameterDescription |
159 | 160 |
|
160 | 161 | return *this; |
161 | 162 | } |
| 163 | + |
162 | 164 | private: |
163 | 165 | // The main descriptor object we're meant to initialize and adjust |
164 | 166 | rcl_interfaces::msg::ParameterDescriptor parameter_descriptor = {}; |
|
0 commit comments