![]() |
AutoAPMS
Streamlining behaviors in ROS 2
|
Struct that encapsulates the identity string for a registered behavior tree node manifest. More...
#include <auto_apms_behavior_tree_core/node/node_manifest.hpp>
Public Member Functions | |
| NodeManifestResourceIdentity (const std::string &identity) | |
| Constructor of a node manifest resource identity object. | |
| NodeManifestResourceIdentity (const char *identity) | |
| Constructor of a behavior resource identity object. | |
| NodeManifestResourceIdentity ()=default | |
| Constructor of an empty node manifest resource identity object. | |
| std::string | str () const |
| Create the corresponding identity string. | |
| bool | empty () const |
| Determine whether this node manifest resource identity object is considered empty. | |
Public Attributes | |
| std::string | package_name |
| Name of the package that registers the behavior resource. | |
| std::string | metadata_id |
| Metadata ID determined when regitering the corresponding node manifest resource. | |
Struct that encapsulates the identity string for a registered behavior tree node manifest.
Definition at line 31 of file node_manifest.hpp.
| NodeManifestResourceIdentity | ( | const std::string & | identity | ) |
Constructor of a node manifest resource identity object.
identity must be formatted like <package_name>::<metadata_id>.
| identity | Identity string for a specific node manifest. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
Definition at line 27 of file node_manifest.cpp.
| NodeManifestResourceIdentity | ( | const char * | identity | ) |
Constructor of a behavior resource identity object.
identity must be formatted like <package_name>::<metadata_id>.
| identity | C-style identity string for a specific node manifest resource. |
| auto_apms_util::exceptions::ResourceIdentityFormatError | if the identity string has wrong format. |
Definition at line 49 of file node_manifest.cpp.
|
default |
Constructor of an empty node manifest resource identity object.
The user must manually populate the member fields.
| std::string str | ( | ) | const |
Create the corresponding identity string.
Definition at line 64 of file node_manifest.cpp.
| bool empty | ( | ) | const |
Determine whether this node manifest resource identity object is considered empty.
true if none of the member fields are set, false otherwise. Definition at line 69 of file node_manifest.cpp.
| std::string package_name |
Name of the package that registers the behavior resource.
Definition at line 77 of file node_manifest.hpp.
| std::string metadata_id |
Metadata ID determined when regitering the corresponding node manifest resource.
Definition at line 79 of file node_manifest.hpp.