Skip to content

Commit

Permalink
Always wait for result in RemoteCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Oct 10, 2022
1 parent d22241a commit 7b03f49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions roseus_bt/include/roseus_bt/eus_remote_condition_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ class EusRemoteConditionNode : public BT::ActionNodeBase
service_client_.call(request);
}

if (service_client_.isActive()) {
return NodeStatus::RUNNING;
}
// Conditions cannot operate asynchronously
service_client_.waitForResult();

return onResponse(service_client_.getResult());
}
Expand Down

0 comments on commit 7b03f49

Please sign in to comment.