Common
common packages for kyubic
 
Loading...
Searching...
No Matches
behavior_tree::FindPingerAction Class Reference

FindPinger Action Client implementation Target Action: planner_msgs::action::FindPinger. More...

#include <find_pinger_action.hpp>

+ Inheritance diagram for behavior_tree::FindPingerAction:
+ Collaboration diagram for behavior_tree::FindPingerAction:

Public Member Functions

 FindPingerAction (const std::string &name, const BT::NodeConfig &config, rclcpp::Publisher< std_msgs::msg::String >::SharedPtr logger_pub, rclcpp::Node::SharedPtr ros_node)
 
bool setGoal (typename Action::Goal &goal) override
 Configures the Goal message.
 
BT::NodeStatus onResult (const WrappedResult &wr) override
 
void onFeedback (const std::shared_ptr< const Feedback > feedback) override
 
- Public Member Functions inherited from behavior_tree::RosActionNode< planner_msgs::action::FindPinger >
 RosActionNode (const std::string &name, const BT::NodeConfig &config, rclcpp::Node::SharedPtr ros_node)
 Create action client.
 
virtual bool setGoal (typename Action::Goal &goal)=0
 Configures the Goal message.
 
virtual BT::NodeStatus onResult (const WrappedResult &wr)=0
 Processes the final result received from the server.
 
virtual void onFeedback (const std::shared_ptr< const Feedback > feedback)
 Behavior when recieving feadback.
 
BT::NodeStatus onStart () override
 Called when the node is first ticked. Initiates the ROS 2 action.
 
BT::NodeStatus onRunning () override
 This method manages the asynchronous state machine:
 
void onHalted () override
 Cancels the currently active goal if one exists.
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 

Additional Inherited Members

- Public Types inherited from behavior_tree::RosActionNode< planner_msgs::action::FindPinger >
using Action = planner_msgs::action::FindPinger
 
using GoalHandle = rclcpp_action::ClientGoalHandle< Action >
 
using ActionClient = rclcpp_action::Client< Action >
 
using WrappedResult = typename rclcpp_action::ClientGoalHandle< Action >::WrappedResult
 
using Feedback = typename Action::Feedback
 
- Protected Attributes inherited from behavior_tree::RosActionNode< planner_msgs::action::FindPinger >
rclcpp::Node::SharedPtr ros_node_
 
ActionClient::SharedPtr client_
 
std::string action_name
 
std::shared_future< typename GoalHandle::SharedPtr > future_goal_handle_
 
std::shared_future< WrappedResultfuture_result_
 
GoalHandle::SharedPtr active_goal_handle_
 

Detailed Description

FindPinger Action Client implementation Target Action: planner_msgs::action::FindPinger.

Constructor & Destructor Documentation

◆ FindPingerAction()

behavior_tree::FindPingerAction::FindPingerAction ( const std::string &  name,
const BT::NodeConfig &  config,
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr  logger_pub,
rclcpp::Node::SharedPtr  ros_node 
)

Member Function Documentation

◆ onFeedback()

void behavior_tree::FindPingerAction::onFeedback ( const std::shared_ptr< const Feedback feedback)
override

◆ onResult()

BT::NodeStatus behavior_tree::FindPingerAction::onResult ( const WrappedResult wr)
override

◆ providedPorts()

BT::PortsList behavior_tree::FindPingerAction::providedPorts ( )
static

◆ setGoal()

bool behavior_tree::FindPingerAction::setGoal ( typename Action::Goal &  goal)
overridevirtual

Configures the Goal message.

Parameters
goalThe Goal object to be sent to the server
Returns
true if the goal was set successfully, false otherwise (triggers FAILURE)

Implements behavior_tree::RosActionNode< planner_msgs::action::FindPinger >.


The documentation for this class was generated from the following files: