#include <blackboard_precondition.h>
Public Member Functions | |
BlackboardPreconditionNode (const std::string &name, const NodeConfiguration &config) | |
virtual | ~BlackboardPreconditionNode () override |
Static Public Member Functions | |
static PortsList | providedPorts () |
Private Member Functions | |
virtual BT::NodeStatus | tick () override |
Method to be implemented by the user. |
This node excute its child only if the value of a given input port is equal to the expected one. If this precondition is met, this node will return the same status of the child, otherwise it will return the value specified in "return_on_mismatch".
Example:
<BlackboardCheckInt value_a="{the_answer}" value_b="42" return_on_mismatch="FAILURE">
Definition at line 33 of file blackboard_precondition.h.
BT::BlackboardPreconditionNode< T >::BlackboardPreconditionNode | ( | const std::string & | name, |
const NodeConfiguration & | config | ||
) | [inline] |
Definition at line 36 of file blackboard_precondition.h.
virtual BT::BlackboardPreconditionNode< T >::~BlackboardPreconditionNode | ( | ) | [override, virtual] |
static PortsList BT::BlackboardPreconditionNode< T >::providedPorts | ( | ) | [inline, static] |
Definition at line 49 of file blackboard_precondition.h.
NodeStatus BT::BlackboardPreconditionNode< T >::tick | ( | ) | [inline, override, private, virtual] |
Method to be implemented by the user.
Implements BT::TreeNode.
Definition at line 63 of file blackboard_precondition.h.