|
AutoAPMS
Streamlining behaviors in ROS 2
|
Configuration options for GenericTreeExecutorNode. More...
#include <auto_apms_behavior_tree/executor/options.hpp>
Public Member Functions | |
| TreeExecutorNodeOptions (const rclcpp::NodeOptions &ros_node_options=rclcpp::NodeOptions()) | |
| Constructor. | |
| TreeExecutorNodeOptions & | enableCommandAction (bool enable) |
| Enable or disable the CommandTreeExecutor action interface. | |
| TreeExecutorNodeOptions & | enableClearBlackboardService (bool enable) |
| Enable or disable the clear blackboard service. | |
| TreeExecutorNodeOptions & | enableScriptingEnumParameters (bool from_overrides, bool dynamic) |
| Configure whether the executor accepts scripting enum parameters. | |
| TreeExecutorNodeOptions & | enableGlobalBlackboardParameters (bool from_overrides, bool dynamic) |
| Configure whether the executor accepts global blackboard parameters. | |
| TreeExecutorNodeOptions & | setDefaultBuildHandler (const std::string &name) |
| Specify a default behavior tree build handler. | |
| TreeExecutorNodeOptions & | setCommandActionName (const std::string &name) |
| Set a custom name for the command tree executor action server. | |
| TreeExecutorNodeOptions & | setClearBlackboardServiceName (const std::string &name) |
| Set a custom name for the clear blackboard service. | |
| rclcpp::NodeOptions | getROSNodeOptions () const |
| Get the ROS 2 node options that comply with the given options. | |
Configuration options for GenericTreeExecutorNode.
This allows configuring which features of the behavior tree executor are enabled, such as the command action interface, parameter/blackboard synchronization, and scripting enum support.
Definition at line 31 of file options.hpp.
| TreeExecutorNodeOptions | ( | const rclcpp::NodeOptions & | ros_node_options = rclcpp::NodeOptions() | ) |
Constructor.
| ros_node_options | ROS 2 node options. |
Definition at line 22 of file options.cpp.
| TreeExecutorNodeOptions & enableCommandAction | ( | bool | enable | ) |
Enable or disable the CommandTreeExecutor action interface.
| enable | true to enable, false to disable. |
Definition at line 27 of file options.cpp.
| TreeExecutorNodeOptions & enableClearBlackboardService | ( | bool | enable | ) |
Enable or disable the clear blackboard service.
| enable | true to enable, false to disable. |
Definition at line 33 of file options.cpp.
| TreeExecutorNodeOptions & enableScriptingEnumParameters | ( | bool | from_overrides, |
| bool | dynamic ) |
Configure whether the executor accepts scripting enum parameters.
| from_overrides | true allows to set scripting enums from parameter overrides. |
| dynamic | true allows to dynamically set scripting enums at runtime. |
Definition at line 39 of file options.cpp.
| TreeExecutorNodeOptions & enableGlobalBlackboardParameters | ( | bool | from_overrides, |
| bool | dynamic ) |
Configure whether the executor accepts global blackboard parameters.
| from_overrides | true allows to set global blackboard entries from parameter overrides. |
| dynamic | true allows to dynamically set global blackboard entries at runtime. |
Definition at line 46 of file options.cpp.
| TreeExecutorNodeOptions & setDefaultBuildHandler | ( | const std::string & | name | ) |
Specify a default behavior tree build handler.
| name | Fully qualified class name of the behavior tree build handler plugin. |
Definition at line 53 of file options.cpp.
| TreeExecutorNodeOptions & setCommandActionName | ( | const std::string & | name | ) |
Set a custom name for the command tree executor action server.
If not set, the default name <node_name>/cmd is used.
| name | Full action name. |
Definition at line 59 of file options.cpp.
| TreeExecutorNodeOptions & setClearBlackboardServiceName | ( | const std::string & | name | ) |
Set a custom name for the clear blackboard service.
If not set, the default name <node_name>/clear_blackboard is used.
| name | Full service name. |
Definition at line 65 of file options.cpp.
| rclcpp::NodeOptions getROSNodeOptions | ( | ) | const |
Get the ROS 2 node options that comply with the given options.
rclcpp::NodeOptions object. Definition at line 71 of file options.cpp.