|
AutoAPMS
Streamlining behaviors in ROS 2
|
Interface used for registering behavior tree node plugins. More...
#include <auto_apms_behavior_tree_core/node/node_registration_interface.hpp>

Public Member Functions | |
| virtual bool | requiresRosNodeContext () const =0 |
| Determine whether a valid instance of RosNodeContext is required for registering the behavior tree node associated with this instance. | |
| virtual void | registerWithBehaviorTreeFactory (BT::BehaviorTreeFactory &factory, const std::string ®istration_name, const RosNodeContext *const context_ptr=nullptr) const =0 |
| Register the node associated with this instance with a behavior tree factory. | |
Interface used for registering behavior tree node plugins.
Definition at line 28 of file node_registration_interface.hpp.
|
pure virtual |
Determine whether a valid instance of RosNodeContext is required for registering the behavior tree node associated with this instance.
This method effectively allows to observe whether the underlying behavior tree node is a ROS 2 specific node or not.
true if you must pass a RosNodeContext instance to registerWithBehaviorTreeFactory, false otherwise.
|
pure virtual |
Register the node associated with this instance with a behavior tree factory.
| factory | Behavior tree factory instance. |
| registration_name | Type name under which this node is to be registered. |
| context_ptr | Optional pointer to a RosNodeContext required if the node to be registered is ROS 2 specific. |
| std::invalid_argument | if node to be registered is ROS 2 specific but context_ptr was omitted. |