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
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 }
You can’t perform that action at this time.
0 commit comments