![]() |
AutoAPMS
Streamlining behaviors in ROS 2
|
Struct that encapsulates the identity string for a registered behavior. More...
#include <auto_apms_behavior_tree_core/behavior.hpp>

Public Member Functions | |
| BehaviorResourceIdentity (const std::string &identity) | |
| Constructor of a behavior resource identity object. | |
| BehaviorResourceIdentity (const std::string &identity, const std::string &default_category) | |
| Constructor of a behavior resource identity object. | |
| BehaviorResourceIdentity (const char *identity) | |
| Constructor of a behavior resource identity object. | |
| BehaviorResourceIdentity ()=default | |
| Constructor of an empty behavior resource identity object. | |
| std::string | str () const |
| Create the corresponding identity string. | |
| bool | empty () const |
| Determine whether this behavior resource identity object is considered empty. | |
Public Attributes | |
| std::string | category_name |
| Name of the category this behavior resource belongs to. | |
| std::string | package_name |
| Name of the package that registers the behavior resource. | |
| std::string | behavior_alias |
| Alias for a single registered behavior. | |
Struct that encapsulates the identity string for a registered behavior.
Definition at line 37 of file behavior.hpp.
| BehaviorResourceIdentity | ( | const std::string & | identity | ) |
Constructor of a behavior resource identity object.
identity must be formatted like <category_name>/<package_name>::<behavior_alias>.
| identity | Identity string for a specific behavior resource. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
Definition at line 28 of file behavior.cpp.
| BehaviorResourceIdentity | ( | const std::string & | identity, |
| const std::string & | default_category ) |
Constructor of a behavior resource identity object.
identity must be formatted like <category_name>/<package_name>::<behavior_alias>.
| identity | Identity string for a specific behavior resource. |
| default_category | Name of the default category assigned if none is provided with the identity string. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
Definition at line 65 of file behavior.cpp.
| BehaviorResourceIdentity | ( | const char * | identity | ) |
Constructor of a behavior resource identity object.
identity must be formatted like <category_name>/<package_name>::<behavior_alias>.
| identity | C-style identity string for a specific behavior resource. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
Definition at line 74 of file behavior.cpp.
|
default |
Constructor of an empty behavior resource identity object.
The user must manually populate the member fields.
| std::string str | ( | ) | const |
Create the corresponding identity string.
Definition at line 83 of file behavior.cpp.
| bool empty | ( | ) | const |
Determine whether this behavior resource identity object is considered empty.
true if none of the member fields are set, false otherwise. Definition at line 93 of file behavior.cpp.
| std::string category_name |
Name of the category this behavior resource belongs to.
Definition at line 93 of file behavior.hpp.
| std::string package_name |
Name of the package that registers the behavior resource.
Definition at line 95 of file behavior.hpp.
| std::string behavior_alias |
Alias for a single registered behavior.
Definition at line 97 of file behavior.hpp.