![]() |
AutoAPMS
Streamlining behaviors in ROS 2
|
Helper temlpate class for creating behavior resource abstractions. More...
#include <auto_apms_behavior_tree_core/behavior.hpp>
Public Member Functions | |
| BehaviorResourceTemplate (const Identity &search_identity) | |
| Assemble a behavior resource using a BehaviorResourceIdentity. | |
| BehaviorResourceTemplate (const std::string &search_identity) | |
| Assemble a behavior resource identified by a string. | |
| BehaviorResourceTemplate (const char *search_identity) | |
| Assemble a behavior tree resource identified by a string. | |
| const Identity & | getIdentity () const |
| Get the unique identity for this resource. | |
| const std::string & | getBuildRequest () const |
| Get the behavior build request associated with this resource. | |
| const std::string & | getDefaultBuildHandlerName () const |
| Get the fully qualified class name of the default build handler associated with this behavior resource. | |
| const std::string & | getEntrypoint () const |
| Get the entrypoint of this behavior resource. | |
| const NodeManifest & | getNodeManifest () const |
| Get the node manifest associated with this resource. | |
Static Public Member Functions | |
| static BehaviorResourceTemplate | find (const std::string &behavior_alias, const std::string &package_name="", const std::string &category_name="") |
| Find an installed behavior resource using a specific behavior tree name. | |
Helper temlpate class for creating behavior resource abstractions.
| T | Resource identity type. |
Definition at line 119 of file behavior.hpp.
|
inline |
Assemble a behavior resource using a BehaviorResourceIdentity.
| search_identity | Behavior resource identity object used for searching the corresponding resource. |
| auto_apms_util::exceptions::ResourceError | if the resource cannot be found using the given identity. |
Definition at line 287 of file behavior.hpp.
|
inline |
Assemble a behavior resource identified by a string.
search_identity must be formatted like <category_name>/<package_name>::<behavior_alias>.
| search_identity | Behavior resource identity string used for searching the corresponding resource. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
| auto_apms_util::exceptions::ResourceError | if the resource cannot be found using the given identity string. |
Definition at line 385 of file behavior.hpp.
|
inline |
Assemble a behavior tree resource identified by a string.
search_identity must be formatted like <category_name>/<package_name>::<behavior_alias>.
| search_identity | C-style behavior resource identity string used for searching the corresponding resource. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
| auto_apms_util::exceptions::ResourceError | if the resource cannot be found using the given identity string. |
Definition at line 391 of file behavior.hpp.
|
inlinestatic |
Find an installed behavior resource using a specific behavior tree name.
This method can be used as an alternative to passing an identity string to the constructor.
| behavior_alias | Name of the desired resource. Is determined when registering the behavior with auto_apms_behavior_tree_register_behavior. |
| package_name | Optional package name provided to narrow down the search. If empty, search in all installed packages. |
| category_name | Optional category name provided to narrow down the search. If empty, search in all installed packages. |
| auto_apms_util::exceptions::ResourceError | if the corresponding behavior resource cannot be found using the given arguments. |
Definition at line 397 of file behavior.hpp.
|
inline |
Get the unique identity for this resource.
Definition at line 406 of file behavior.hpp.
|
inline |
Get the behavior build request associated with this resource.
Definition at line 412 of file behavior.hpp.
|
inline |
Get the fully qualified class name of the default build handler associated with this behavior resource.
Definition at line 418 of file behavior.hpp.
|
inline |
Get the entrypoint of this behavior resource.
Definition at line 424 of file behavior.hpp.
|
inline |
Get the node manifest associated with this resource.
Definition at line 430 of file behavior.hpp.