Useful tooling for incorporating behavior trees for task development.
More...
Useful tooling for incorporating behavior trees for task development.
◆ AUTO_APMS_BEHAVIOR_TREE_DECLARE_NODE
#define AUTO_APMS_BEHAVIOR_TREE_DECLARE_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 43 of file node.hpp.
◆ AUTO_APMS_BEHAVIOR_TREE_DECLARE_BUILD_HANDLER
#define AUTO_APMS_BEHAVIOR_TREE_DECLARE_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.
◆ 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.