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

Condition node that monitors the state of a Qt button. More...

Detailed Description

A pointer to the monitored button (QAbstractButton*) is provided via the blackboard using the key defined in the input port. When the button is clicked, the node returns failure the next time it is checked.

Inheritance diagram for snp_application::ButtonMonitorNode:

Public Member Functions

 ButtonMonitorNode (const std::string &name, const BT::NodeConfig &config)
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 

Static Public Attributes

static const std::string BUTTON_PORT_KEY = "button"
 

Protected Member Functions

BT::NodeStatus tick () override
 

Protected Attributes

std::atomic_bool ok_