Common
common packages for kyubic
 
Loading...
Searching...
No Matches
find_pinger_action.hpp
Go to the documentation of this file.
1
7#ifndef _FIND_PINGER_ACTION_HPP
8#define _FIND_PINGER_ACTION_HPP
9
10#include <planner_msgs/action/find_pinger.hpp>
11#include <rclcpp/rclcpp.hpp>
12#include <std_msgs/msg/string.hpp>
13
15
16namespace behavior_tree
17{
18
23class FindPingerAction : public RosActionNode<planner_msgs::action::FindPinger>
24{
25public:
27 const std::string & name, const BT::NodeConfig & config,
28 rclcpp::Publisher<std_msgs::msg::String>::SharedPtr logger_pub,
29 rclcpp::Node::SharedPtr ros_node);
30
31 static BT::PortsList providedPorts();
32
33 bool setGoal(typename Action::Goal & goal) override;
34
35 BT::NodeStatus onResult(const WrappedResult & wr) override;
36
37 void onFeedback(const std::shared_ptr<const Feedback> feedback) override;
38
39private:
40 rclcpp::Publisher<std_msgs::msg::String>::SharedPtr logger_pub_;
41};
42
43} // namespace behavior_tree
44
45#endif // _FIND_PINGER_ACTION_HPP
FindPinger Action Client implementation Target Action: planner_msgs::action::FindPinger.
Definition: find_pinger_action.hpp:24
static BT::PortsList providedPorts()
Definition: find_pinger_action.cpp:18
bool setGoal(typename Action::Goal &goal) override
Configures the Goal message.
Definition: find_pinger_action.cpp:26
void onFeedback(const std::shared_ptr< const Feedback > feedback) override
Definition: find_pinger_action.cpp:50
BT::NodeStatus onResult(const WrappedResult &wr) override
Definition: find_pinger_action.cpp:37
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.