File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ class ActionClientNode : public BT::StatefulActionNode
263
263
{
264
264
// send a request to the server
265
265
bool accepted = sendStartRequestToServer();
266
- // check if the request was rejected
266
+ // check if the request was rejected by the server
267
267
if( !accepted ) {
268
268
return NodeStatus::FAILURE;
269
269
}
@@ -280,7 +280,9 @@ class ActionClientNode : public BT::StatefulActionNode
280
280
281
281
if( request_state == DONE )
282
282
{
283
+ // retrieve the result
283
284
auto result = getResult();
285
+ // check if this result should be considered "good"
284
286
if( IsValidResult(result) ) {
285
287
return NodeStatus::SUCCESS;
286
288
}
@@ -289,10 +291,12 @@ class ActionClientNode : public BT::StatefulActionNode
289
291
}
290
292
}
291
293
else if( request_state == ABORTED ) {
294
+ // fail if the action was aborted by some other client
295
+ // or by the server itself
292
296
return NodeStatus::FAILURE;
293
297
}
294
298
else {
295
- // request_state == EXECUTING ?
299
+ // probably ( request_state == EXECUTING) ?
296
300
return NodeStatus::RUNNING;
297
301
}
298
302
}
You can’t perform that action at this time.
0 commit comments