Nav2 Navigation Stack - jazzy
jazzy
ROS 2 Navigation Stack
|
Type of sequence node that re-ticks previous children when a child returns running. More...
#include <nav2_behavior_tree/include/nav2_behavior_tree/plugins/control/pipeline_sequence.hpp>
Public Member Functions | |
PipelineSequence (const std::string &name) | |
A constructor for nav2_behavior_tree::PipelineSequence. More... | |
PipelineSequence (const std::string &name, const BT::NodeConfiguration &config) | |
A constructor for nav2_behavior_tree::PipelineSequence. More... | |
void | halt () override |
The other (optional) override required by a BT action to reset node state. | |
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... | |
Protected Attributes | |
std::size_t | last_child_ticked_ = 0 |
Type of sequence node that re-ticks previous children when a child returns running.
PipelineSequence | Restart | Tick All Previous Again
Tick All Previous Again means every node up till this one will be reticked. Even if a previous node returns Running, the next node 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
If any children at any time had returned FAILURE. PipelineSequence would have returned FAILURE and halted all children, ending the sequence.
Usage in XML: <PipelineSequence>
Definition at line 55 of file pipeline_sequence.hpp.
|
explicit |
A constructor for nav2_behavior_tree::PipelineSequence.
name | Name for the XML tag for this node |
Definition at line 24 of file pipeline_sequence.cpp.
nav2_behavior_tree::PipelineSequence::PipelineSequence | ( | const std::string & | name, |
const BT::NodeConfiguration & | config | ||
) |
A constructor for nav2_behavior_tree::PipelineSequence.
name | Name for the XML tag for this node |
config | BT node configuration |
Definition at line 29 of file pipeline_sequence.cpp.
|
inlinestatic |
Creates list of BT ports.
Definition at line 80 of file pipeline_sequence.hpp.
|
overrideprotected |
The main override required by a BT action.
Definition at line 36 of file pipeline_sequence.cpp.