AutoAPMS
Resilient Robot Mission Management
Loading...
Searching...
No Matches
SubTree Class Reference

Subtree behavior tree node model. More...

#include <auto_apms_behavior_tree_core/node/node_model_type.hpp>

Public Member Functions

std::string getRegistrationName () const override final
 Get the type specific name under which all subtree nodes are registered with the behavior tree factory.
 
SubTreesetBlackboardRemapping (const PortValues &remapping)
 Configure which blackboard entries of the subtree node's parent tree should be also available for the children of the tree this subtree node is pointing to.
 
SubTreeset_auto_remap (bool val=false)
 Set automatic blackboard remapping.
 
bool get_auto_remap () const
 Get automatic blackboard remapping.
 

Static Public Member Functions

static std::string name ()
 Static method that provides the hard coded registration name of subtree nodes.
 
static BT::NodeType type ()
 Type of the behavior tree node.
 

Detailed Description

Subtree behavior tree node model.

This model implements extra methods specific to the subtree concept.

Definition at line 161 of file node_model_type.hpp.

Member Function Documentation

◆ name()

std::string name ( )
static

Static method that provides the hard coded registration name of subtree nodes.

Definition at line 35 of file node_model_type.cpp.

◆ type()

BT::NodeType type ( )
static

Type of the behavior tree node.

Definition at line 33 of file node_model_type.cpp.

◆ getRegistrationName()

std::string getRegistrationName ( ) const
finaloverride

Get the type specific name under which all subtree nodes are registered with the behavior tree factory.

Returns
Registration name of a subtree node.

Definition at line 37 of file node_model_type.cpp.

◆ setBlackboardRemapping()

SubTree & setBlackboardRemapping ( const PortValues & remapping)

Configure which blackboard entries of the subtree node's parent tree should be also available for the children of the tree this subtree node is pointing to.

Parameters
remappingMapping of blackboard entry names in the format {subtree_entry_name: original_tree_entry_name}
Returns
Modified subtree model.

Definition at line 39 of file node_model_type.cpp.

◆ set_auto_remap()

SubTree & set_auto_remap ( bool val = false)

Set automatic blackboard remapping.

Parameters
valtrue to enable and false to disable.
Returns
Modified subtree model.

Definition at line 53 of file node_model_type.cpp.

◆ get_auto_remap()

bool get_auto_remap ( ) const

Get automatic blackboard remapping.

Returns
Boolean flag for the currently configured option.

Definition at line 55 of file node_model_type.cpp.


The documentation for this class was generated from the following files: