Powerful tooling for incorporating behavior trees for task development.
More...
Powerful tooling for incorporating behavior trees for task development.
◆ AUTO_APMS_BEHAVIOR_TREE_REGISTER_NODE
| #define AUTO_APMS_BEHAVIOR_TREE_REGISTER_NODE |
( |
| type | ) |
|
Value: PLUGINLIB_EXPORT_CLASS( \
auto_apms_behavior_tree::core::NodeRegistrationTemplate<type>, \
auto_apms_behavior_tree::core::NodeRegistrationInterface)
Macro for registering a behavior tree node plugin.
Behavior tree nodes should be created by inheriting from one of
One may also inherit from one of the other base classes provided by BehaviorTree.CPP if the functionality to be implemented doesn't require ROS 2 interfaces.
- Parameters
-
| type | Fully qualified name of the class. |
- Examples
- simple_skill_node.cpp.
Definition at line 44 of file node.hpp.
◆ AUTO_APMS_BEHAVIOR_TREE_REGISTER_BUILD_HANDLER
| #define AUTO_APMS_BEHAVIOR_TREE_REGISTER_BUILD_HANDLER |
( |
| type | ) |
|
Value: PLUGINLIB_EXPORT_CLASS( \
auto_apms_behavior_tree::TreeBuildHandlerFactoryTemplate<type>, \
auto_apms_behavior_tree::TreeBuildHandlerFactoryInterface)
Macro for registering a behavior tree build handler plugin which may be loaded at runtime to build a behavior tree according to the implementation.
Build handler classes should be created by inheriting from auto_apms_behavior_tree::TreeBuildHandler.
- Parameters
-
| type | Fully qualified name of the class. |
- Examples
- simple_skill_build_handler.cpp.
Definition at line 29 of file build_handler.hpp.
◆ getBehaviorResourceIdentities()
| std::set< BehaviorResourceIdentity > getBehaviorResourceIdentities |
( |
const std::set< std::string > & | include_categories = {}, |
|
|
bool | include_internal = false, |
|
|
const std::set< std::string > & | exclude_packages = {} ) |
Get all registered behavior resource identities.
- Parameters
-
| include_categories | Optional set of categories to include in the results. If empty, all categories are included. |
| include_internal | Optional flag whether to include behaviors marked as internal. |
| exclude_packages | Optional set of package names to exclude from the search. If empty, all packages are included. |
- Returns
- Set of
BehaviorResourceIdentity objects representing all registered behavior resources.
Definition at line 95 of file behavior.cpp.
◆ getNodeManifestResourceIdentities()
Get all registered behavior tree node manifest resource identities.
- Parameters
-
| exclude_packages | Optional set of package names to exclude from the search. If empty, all packages are included. |
- Returns
- Set of
NodeManifestResourceIdentity objects representing all registered node manifest resources.
Definition at line 71 of file node_manifest.cpp.
◆ insertStartExecutorFromString() [1/2]
Helper that extends the children of a given parent node by a StartExecutor node for a specific behavior tree to be created from string.
- Parameters
-
| parent | Parent behavior tree node. |
| tree_str | XML string of the behavior tree to be executed. |
| before_this | Pointer to an existing child node before which the new node will be placed. If nullptr, insert at the end. |
- Returns
- Inserted
StartExecutor node element.
- Exceptions
-
| auto_apms_behavior_tree::exceptions::TreeDocumentError | if before_this is provided but not a child of parent. |
Definition at line 19 of file node.cpp.
◆ insertStartExecutorFromString() [2/2]
Helper that extends the children of a given parent node by a StartExecutor node for a specific behavior tree to be created from a string.
- Parameters
-
| parent | Parent behavior tree node. |
| tree | Tree element representing the behavior tree to be executed. |
| before_this | Pointer to an existing child node before which the new node will be placed. If nullptr, insert at the end. |
- Returns
- Inserted
StartExecutor node element.
- Exceptions
-
| auto_apms_behavior_tree::exceptions::TreeDocumentError | if before_this is provided but not a child of parent. |
Definition at line 29 of file node.cpp.
◆ insertStartExecutorFromResource()
Helper that extends the children of a given parent node by a StartExecutor node for a specific behavior tree to be created from a resource.
- Parameters
-
| parent | Parent behavior tree node. |
| identity | Identity object for the behavior tree resource that holds the tree to be executed. You may explicitly set the root tree by specifying the <tree_name> token of the identity. |
| before_this | Pointer to an existing child node before which the new node will be placed. If nullptr, insert at the end. |
- Returns
- Inserted
StartExecutor node element.
- Exceptions
-
| auto_apms_behavior_tree::exceptions::TreeDocumentError | if before_this is provided but not a child of parent. |
Definition at line 37 of file node.cpp.