Common
common packages for kyubic
 
Loading...
Searching...
No Matches
wrench_action.hpp
Go to the documentation of this file.
1
10#ifndef _WRENCH_ACTION_HPP
11#define _WRENCH_ACTION_HPP
12
14#include <wrench_action_sample_msgs/action/wrench.hpp>
15
16namespace behavior_tree
17{
18
24class WrenchAction : public RosActionNode<wrench_action_sample_msgs::action::Wrench>
25{
26public:
27 using Goal = wrench_action_sample_msgs::action::Wrench::Goal;
28
36 const std::string & name, const BT::NodeConfig & config, rclcpp::Node::SharedPtr ros_node);
37
45 static BT::PortsList providedPorts();
46
52 bool setGoal(Goal & goal) override;
53
59 BT::NodeStatus onResult(const WrappedResult & wr) override;
60};
61
62} // namespace behavior_tree
63
64#endif
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
Behavior Tree node for the Wrench Action.
Definition: wrench_action.hpp:25
bool setGoal(Goal &goal) override
Configures the Goal message before sending it to the server.
Definition: wrench_action.cpp:29
wrench_action_sample_msgs::action::Wrench::Goal Goal
Definition: wrench_action.hpp:27
BT::NodeStatus onResult(const WrappedResult &wr) override
callback executed when the action result is received.
Definition: wrench_action.cpp:40
static BT::PortsList providedPorts()
Defines the input and output ports for this node.
Definition: wrench_action.cpp:21
Abstract class for ROS2 Action client with Behavior Tree.