Fix get_parameter_tyeps of AsyncPrameterClient results are always empty (#1019)

Signed-off-by: Donghee Ye <donghee.ye@samsung.com>
This commit is contained in:
DongheeYe 2020-03-10 05:58:23 +09:00 committed by GitHub
parent 977c6a5de1
commit d508ce3492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,7 @@ AsyncParametersClient::get_parameter_types(
std::vector<rclcpp::ParameterType> types; std::vector<rclcpp::ParameterType> types;
auto & pts = cb_f.get()->types; auto & pts = cb_f.get()->types;
for (auto & pt : pts) { for (auto & pt : pts) {
pts.push_back(static_cast<rclcpp::ParameterType>(pt)); types.push_back(static_cast<rclcpp::ParameterType>(pt));
} }
promise_result->set_value(types); promise_result->set_value(types);
if (callback != nullptr) { if (callback != nullptr) {