10#ifndef _FIBONACCI_ACTION_HPP
11#define _FIBONACCI_ACTION_HPP
13#include <action_tutorials_interfaces/action/fibonacci.hpp>
32 const std::string & name,
const BT::NodeConfig & config, rclcpp::Node::SharedPtr ros_node);
44 bool setGoal(
typename Action::Goal & goal)
override;
56 void onFeedback(
const std::shared_ptr<const Feedback> feedback)
override;
Fibonacci Action Client implementation using the RosActionNode template.
Definition: fibonacci_action.hpp:23
BT::NodeStatus onResult(const WrappedResult &wr) override
Implementation of onResult. Checks the result code and sets the output port if successful.
Definition: fibonacci_action.cpp:41
void onFeedback(const std::shared_ptr< const Feedback > feedback) override
(Optional) Implementation of onFeedback. Logs the partial sequence length.
Definition: fibonacci_action.cpp:56
bool setGoal(typename Action::Goal &goal) override
Implementation of setGoal. Gets the "order" from the input port and populates the goal message.
Definition: fibonacci_action.cpp:29
static BT::PortsList providedPorts()
Define ports required by this specific action.
Definition: fibonacci_action.cpp:21
Template for ROS2 Action with Behavior Tree.
Definition: ros_action_node.hpp:28
typename rclcpp_action::ClientGoalHandle< Action >::WrappedResult WrappedResult
Definition: ros_action_node.hpp:33
Abstract class for ROS2 Action client with Behavior Tree.