QR Action Client implementation using the CUSTOM RosActionNode template. Target Action: planner_msgs::action::QR.
More...
#include <qr_action.hpp>
|
| | QrAction (const std::string &name, const BT::NodeConfig &config, rclcpp::Publisher< std_msgs::msg::String >::SharedPtr logger_pub, rclcpp::Node::SharedPtr ros_node) |
| | Constructor matching the custom base class signature.
|
| |
| bool | setGoal (typename Action::Goal &goal) override |
| | Sets the goal.start to true to trigger the server.
|
| |
| BT::NodeStatus | onResult (const WrappedResult &wr) override |
| | Checks if the action finished successfully.
|
| |
| void | onFeedback (const std::shared_ptr< const Feedback > feedback) override |
| | Feedback callback (Empty for QR action but required to implement)
|
| |
| | 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 BT::PortsList | providedPorts () |
| | Define ports Input: action_name.
|
| |
QR Action Client implementation using the CUSTOM RosActionNode template. Target Action: planner_msgs::action::QR.
◆ QrAction()
| behavior_tree::QrAction::QrAction |
( |
const std::string & |
name, |
|
|
const BT::NodeConfig & |
config, |
|
|
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr |
logger_pub, |
|
|
rclcpp::Node::SharedPtr |
ros_node |
|
) |
| |
Constructor matching the custom base class signature.
◆ onFeedback()
| void behavior_tree::QrAction::onFeedback |
( |
const std::shared_ptr< const Feedback > |
feedback | ) |
|
|
override |
Feedback callback (Empty for QR action but required to implement)
◆ onResult()
| BT::NodeStatus behavior_tree::QrAction::onResult |
( |
const WrappedResult & |
wr | ) |
|
|
override |
Checks if the action finished successfully.
◆ providedPorts()
| BT::PortsList behavior_tree::QrAction::providedPorts |
( |
| ) |
|
|
static |
Define ports Input: action_name.
◆ setGoal()
| bool behavior_tree::QrAction::setGoal |
( |
typename Action::Goal & |
goal | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: