17#include "auto_apms_behavior_tree/executor/action_based_executor_node.hpp"
18#include "auto_apms_interfaces/action/start_tree_executor.hpp"
68 TreeExecutorNode(
const std::string & name,
const std::string & start_action_name, Options options);
109 bool shouldAcceptGoal(
const rclcpp_action::GoalUUID & uuid, std::shared_ptr<const TriggerGoal> goal_ptr)
override;
117 void onAcceptedGoal(std::shared_ptr<TriggerGoalHandle> goal_handle_ptr)
override;
137 bool afterTick()
override;
ActionBasedTreeExecutorNode(const std::string &name, const std::string &action_name, Options options)
ExecutionResult
Enum representing possible behavior tree execution results.
TreeConstructor getTreeConstructorFromGoal(std::shared_ptr< const TriggerGoal > goal_ptr) override
Create a TreeConstructor from a StartTreeExecutor action goal.
void onExecutionStarted(std::shared_ptr< TriggerGoalHandle > goal_handle_ptr) override
Hook called after execution has been started successfully.
TreeExecutorNode(const std::string &name, const std::string &start_action_name, Options options)
Constructor allowing to specify a custom node name and executor options.
void onAcceptedGoal(std::shared_ptr< TriggerGoalHandle > goal_handle_ptr) override
Hook called after a start action goal has been accepted and before execution begins.
void onGoalExecutionTermination(const ExecutionResult &result, TriggerActionContext &context) override
Handle the execution result for the StartTreeExecutor action client.
bool shouldAcceptGoal(const rclcpp_action::GoalUUID &uuid, std::shared_ptr< const TriggerGoal > goal_ptr) override
Determine whether an incoming start action goal should be accepted.
Powerful tooling for incorporating behavior trees for task development.