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:
parent
977c6a5de1
commit
d508ce3492
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue