|
Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
Type of sequence node that keeps tickinng through all the children until all children return SUCCESS. More...
#include <nav2_behavior_tree/include/nav2_behavior_tree/plugins/control/nonblocking_sequence.hpp>


Public Member Functions | |
| NonblockingSequence (const std::string &name) | |
| A constructor for nav2_behavior_tree::NonblockingSequence. More... | |
| NonblockingSequence (const std::string &name, const BT::NodeConfiguration &config) | |
| A constructor for nav2_behavior_tree::NonblockingSequence. More... | |
Static Public Member Functions | |
| static BT::PortsList | providedPorts () |
| Creates list of BT ports. More... | |
Protected Member Functions | |
| BT::NodeStatus | tick () override |
| The main override required by a BT action. More... | |
Type of sequence node that keeps tickinng through all the children until all children return SUCCESS.
NonblockingSequence | Restart | Continue tickng next child
Continue ticking next child means every node after the running node will be ticked. Even if a previous node returns Running or Success, the subsequent nodes will be reticked.
As an example, let's say this node has 3 children: A, B and C. At the start, they are all IDLE.
| IDLE | IDLE | IDLE | | RUNNING | IDLE | IDLE | - at first A gets ticked. Assume it returns RUNNING
SUCCESS, on the next tick, it will attempt toIf any children at any time had returned FAILURE. NonblockingSequence would have returned FAILURE and halted all children, ending the sequence.
Usage in XML: <NonblockingSequence>
Definition at line 60 of file nonblocking_sequence.hpp.
|
explicit |
A constructor for nav2_behavior_tree::NonblockingSequence.
| name | Name for the XML tag for this node |
Definition at line 24 of file nonblocking_sequence.cpp.
| nav2_behavior_tree::NonblockingSequence::NonblockingSequence | ( | const std::string & | name, |
| const BT::NodeConfiguration & | config | ||
| ) |
A constructor for nav2_behavior_tree::NonblockingSequence.
| name | Name for the XML tag for this node |
| config | BT node configuration |
Definition at line 29 of file nonblocking_sequence.cpp.
|
inlinestatic |
Creates list of BT ports.
Definition at line 80 of file nonblocking_sequence.hpp.
|
overrideprotected |
The main override required by a BT action.
Definition at line 36 of file nonblocking_sequence.cpp.