17#include "auto_apms_behavior_tree/executor/action_based_executor_node.hpp"
18#include "auto_apms_interfaces/action/start_tree_executor.hpp"
68 TreeExecutorNode(rclcpp::Node::SharedPtr node_ptr,
const std::string & start_action_name, Options options);
77 TreeExecutorNode(
const std::string & name,
const std::string & start_action_name, Options options);
91 explicit TreeExecutorNode(rclcpp::NodeOptions ros_options = rclcpp::NodeOptions());
118 bool shouldAcceptGoal(
const rclcpp_action::GoalUUID & uuid, std::shared_ptr<const TriggerGoal> goal_ptr)
override;
126 void onAcceptedGoal(std::shared_ptr<TriggerGoalHandle> goal_handle_ptr)
override;
146 bool afterTick()
override;
ActionBasedTreeExecutorNode(rclcpp::Node::SharedPtr node_ptr, const std::string &action_name, Options options)
ExecutionResult
Enum representing possible behavior tree execution results.
TreeExecutorNode(rclcpp::Node::SharedPtr node_ptr, const std::string &start_action_name, Options options)
Constructor using an existing ROS 2 node.
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.
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.