Skip to content

Commit 0bcb185

Browse files
committed
docs
1 parent 291db65 commit 0bcb185

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/asynchronous_nodes.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class ActionClientNode : public BT::StatefulActionNode
263263
{
264264
// send a request to the server
265265
bool accepted = sendStartRequestToServer();
266-
// check if the request was rejected
266+
// check if the request was rejected by the server
267267
if( !accepted ) {
268268
return NodeStatus::FAILURE;
269269
}
@@ -280,7 +280,9 @@ class ActionClientNode : public BT::StatefulActionNode
280280

281281
if( request_state == DONE )
282282
{
283+
// retrieve the result
283284
auto result = getResult();
285+
// check if this result should be considered "good"
284286
if( IsValidResult(result) ) {
285287
return NodeStatus::SUCCESS;
286288
}
@@ -289,10 +291,12 @@ class ActionClientNode : public BT::StatefulActionNode
289291
}
290292
}
291293
else if( request_state == ABORTED ) {
294+
// fail if the action was aborted by some other client
295+
// or by the server itself
292296
return NodeStatus::FAILURE;
293297
}
294298
else {
295-
// request_state == EXECUTING ?
299+
// probably (request_state == EXECUTING) ?
296300
return NodeStatus::RUNNING;
297301
}
298302
}

0 commit comments

Comments
 (0)