From d508ce349257e973e25df67370bebacbbdd86d75 Mon Sep 17 00:00:00 2001 From: DongheeYe <45094526+DongheeYe@users.noreply.github.com> Date: Tue, 10 Mar 2020 05:58:23 +0900 Subject: [PATCH] Fix get_parameter_tyeps of AsyncPrameterClient results are always empty (#1019) Signed-off-by: Donghee Ye --- rclcpp/src/rclcpp/parameter_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/src/rclcpp/parameter_client.cpp b/rclcpp/src/rclcpp/parameter_client.cpp index 4b03723..3146504 100644 --- a/rclcpp/src/rclcpp/parameter_client.cpp +++ b/rclcpp/src/rclcpp/parameter_client.cpp @@ -191,7 +191,7 @@ AsyncParametersClient::get_parameter_types( std::vector types; auto & pts = cb_f.get()->types; for (auto & pt : pts) { - pts.push_back(static_cast(pt)); + types.push_back(static_cast(pt)); } promise_result->set_value(types); if (callback != nullptr) {