Skip to content

Commit

Permalink
get_parameter_value() -> get_value_message()
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed May 29, 2018
1 parent 6d51a66 commit a79730e
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/parameter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ParameterVariant

RCLCPP_PUBLIC
rcl_interfaces::msg::ParameterValue
get_parameter_value() const;
get_value_message() const;

/// Get value of parameter using rclcpp::ParameterType as template argument.
template<ParameterType ParamT>
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/parameter_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ParameterValue
/// Return a message populated with the parameter value
RCLCPP_PUBLIC
rcl_interfaces::msg::ParameterValue
get_value_message() const;
get_message() const;

// The following get() variants require the use of ParameterType

Expand Down
6 changes: 3 additions & 3 deletions rclcpp/src/rclcpp/parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ ParameterVariant::get_name() const
}

rcl_interfaces::msg::ParameterValue
ParameterVariant::get_parameter_value() const
ParameterVariant::get_value_message() const
{
return value_.get_value_message();
return value_.get_message();
}

bool
Expand Down Expand Up @@ -122,7 +122,7 @@ ParameterVariant::to_parameter()
{
rcl_interfaces::msg::Parameter parameter;
parameter.name = name_;
parameter.value = value_.get_value_message();
parameter.value = value_.get_message();
return parameter;
}

Expand Down
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/parameter_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ParameterService::ParameterService(
{
auto values = node_params->get_parameters(request->names);
for (auto & pvariant : values) {
response->values.push_back(pvariant.get_parameter_value());
response->values.push_back(pvariant.get_value_message());
}
},
qos_profile, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/parameter_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ ParameterValue::get_type() const
}

rcl_interfaces::msg::ParameterValue
ParameterValue::get_value_message() const
ParameterValue::get_message() const
{
return value_;
}
Loading

0 comments on commit a79730e

Please sign in to comment.