Skip to content

Commit c4d2f2f

Browse files
committed
(roseus_bt) Always wait for result in RemoteCondition
1 parent d22241a commit c4d2f2f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

roseus_bt/include/roseus_bt/eus_remote_condition_node.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ class EusRemoteConditionNode : public BT::ActionNodeBase
7676
service_client_.call(request);
7777
}
7878

79-
if (service_client_.isActive()) {
80-
return NodeStatus::RUNNING;
81-
}
79+
// Conditions cannot operate asynchronously
80+
service_client_.waitForResult();
8281

8382
return onResponse(service_client_.getResult());
8483
}

0 commit comments

Comments
 (0)