Scan-N-Plan  7.0.0
Loading...
Searching...
No Matches
snp_application::ButtonApprovalNode Class Reference

Action node that listens to the state of two Qt buttons to succeed or fail the. More...

Detailed Description

Pointers (QAbstractButton*) to the buttons are provided via the blackboard using the keys defined in the input ports When the node is active and the "approve" button is pressed, the node returns success. When the node is active and the "disapprove" button is pressed, the node returns failure.

Inheritance diagram for snp_application::ButtonApprovalNode:

Public Member Functions

 ButtonApprovalNode (const std::string &instance_name, const BT::NodeConfig &config)
 
BT::NodeStatus onStart () override
 
BT::NodeStatus onRunning () override
 
void onHalted () override
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 

Static Public Attributes

static const std::string APPROVE_BUTTON_PORT_KEY = "approve_button"
 
static const std::string DISAPPROVE_BUTTON_PORT_KEY = "disapprove_button"