AutoAPMS
Streamlining behaviors in ROS 2
Loading...
Searching...
No Matches
auto_apms_behavior_tree::core Namespace Reference

Core API for AutoAPMS's behavior tree implementation. More...

Classes

class  BehaviorResource
 Class containing behavior resource data. More...
 
struct  BehaviorResourceIdentity
 Struct that encapsulates the identity string for a registered behavior. More...
 
class  BehaviorResourceTemplate
 Helper temlpate class for creating behavior resource abstractions. More...
 
class  LeafNodeModelType
 Abstract base for automatically generated model classes of behavior tree nodes that are not allowed to have any children. More...
 
class  NodeManifest
 Data structure for information about which behavior tree node plugin to load and how to configure them. More...
 
class  NodeManifestResource
 Class containing behavior tree node manifest resource data. More...
 
struct  NodeManifestResourceIdentity
 Struct that encapsulates the identity string for a registered behavior tree node manifest. More...
 
class  NodeModelType
 Abstract base for all automatically generated behavior tree node model classes to be used in interaction with the TreeDocument API. More...
 
class  NodeRegistrationLoader
 A pluginlib::ClassLoader specifically for loading installed behavior tree node plugins. More...
 
struct  NodeRegistrationOptions
 Parameters for loading and registering a behavior tree node class from a shared library using e.g. NodeRegistrationLoader. More...
 
class  RosActionNode
 Generic behavior tree node wrapper for a ROS 2 action client. More...
 
class  RosNodeContext
 Additional parameters specific to ROS 2 determined at runtime by TreeBuilder. More...
 
class  RosPublisherNode
 Generic behavior tree node wrapper for a ROS 2 publisher. More...
 
class  RosServiceNode
 Generic behavior tree node wrapper for a ROS 2 service client. More...
 
class  RosSubscriberNode
 Generic behavior tree node wrapper for a ROS 2 subscriber. More...
 
class  Script
 Class that encapsulates behavior tree script expressions. More...
 
class  TreeBuilder
 Class for configuring and instantiating behavior trees. More...
 
class  TreeDocument
 Document Object Model (DOM) for the behavior tree XML schema. This class offers a programmatic approach for building behavior trees and stores the registration data of all associated nodes. More...
 
class  TreeResource
 Class containing behavior tree resource data. More...
 
struct  TreeResourceIdentity
 Struct that encapsulates the identity string for a registered behavior tree. More...
 

Functions

std::set< BehaviorResourceIdentitygetBehaviorResourceIdentities (const std::set< std::string > &include_categories={}, bool include_internal=false, const std::set< std::string > &exclude_packages={})
 Get all registered behavior resource identities.
 
std::set< NodeManifestResourceIdentitygetNodeManifestResourceIdentities (const std::set< std::string > &exclude_packages={})
 Get all registered behavior tree node manifest resource identities.
 
const char * toStr (const ActionNodeErrorCode &err)
 Convert the action error code to string.
 
const char * toStr (const ServiceNodeErrorCode &err)
 Convert the service error code to string.
 
std::pair< std::string, std::string > parseAliasPortName (const std::string &str)
 Parse alias port name and optional description from format "alias_name" or "alias_name (description)".
 

Detailed Description

Core API for AutoAPMS's behavior tree implementation.

Function Documentation

◆ toStr() [1/2]

const char * toStr ( const ActionNodeErrorCode & err)
inline

Convert the action error code to string.

Parameters
errError code.
Returns
C-style string.

Definition at line 45 of file ros_action_node.hpp.

◆ toStr() [2/2]

const char * toStr ( const ServiceNodeErrorCode & err)
inline

Convert the service error code to string.

Parameters
errError code.
Returns
C-style string.

Definition at line 42 of file ros_service_node.hpp.

◆ parseAliasPortName()

std::pair< std::string, std::string > parseAliasPortName ( const std::string & str)

Parse alias port name and optional description from format "alias_name" or "alias_name (description)".

Parameters
strInput string to parse.
Returns
Pair of alias name and description (empty if not provided).

Definition at line 147 of file ros_node_context.cpp.