Template Class BtServiceNode
Defined in File bt_service_node.hpp
Inheritance Relationships
Base Type
public BT::ActionNodeBase
Class Documentation
Abstract class representing a service based BT node.
- Template Parameters:
ServiceT – Type of service
Public Functions
A nav2_behavior_tree::BtServiceNode constructor.
- Parameters:
service_node_name – BT node name
conf – BT node configuration
service_name – Optional service name this node creates a client for instead of from input port
The main override required by a BT service.
- Returns:
BT::NodeStatus Status of tick execution
The other (optional) override required by a BT service.
Function to perform some user-defined operation on tick Fill in service request with information if necessary.
Function to perform some user-defined operation upon successful completion of the service. Could put a value on the blackboard.
- Parameters:
response – can be used to get the result of the service call in the BT Node.
- Returns:
BT::NodeStatus Returns SUCCESS by default, user may override to return another value
Check the future and decide the status of BT.
- Returns:
BT::NodeStatus SUCCESS if future complete before timeout, FAILURE otherwise
Function to perform some user-defined operation after a timeout waiting for a result that hasn’t been received yet.
Public Static Functions
Any subclass of BtServiceNode that accepts parameters must provide a providedPorts method and call providedBasicPorts in it.
- Parameters:
addition – Additional ports to add to BT port list
- Returns:
BT::PortsList Containing basic ports along with node-specific ports
Creates list of BT ports.
- Returns:
BT::PortsList Containing basic ports along with node-specific ports
Protected Functions
Function to increment recovery count on blackboard if this node wraps a recovery.
Protected Attributes