Public Member Functions | Static Public Member Functions | Private Member Functions
BT::BlackboardPreconditionNode< T > Class Template Reference

#include <blackboard_precondition.h>

Inheritance diagram for BT::BlackboardPreconditionNode< T >:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

template<typename T>
class BT::BlackboardPreconditionNode< T >

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.


Constructor & Destructor Documentation

template<typename T >
BT::BlackboardPreconditionNode< T >::BlackboardPreconditionNode ( const std::string &  name,
const NodeConfiguration config 
) [inline]

Definition at line 36 of file blackboard_precondition.h.

template<typename T >
virtual BT::BlackboardPreconditionNode< T >::~BlackboardPreconditionNode ( ) [override, virtual]

Member Function Documentation

template<typename T >
static PortsList BT::BlackboardPreconditionNode< T >::providedPorts ( ) [inline, static]

Definition at line 49 of file blackboard_precondition.h.

template<typename T >
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.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 20:17:15