13 #ifndef DECORATOR_BLACKBOARD_PRECONDITION_NODE_H 14 #define DECORATOR_BLACKBOARD_PRECONDITION_NODE_H 27 if( std::is_same<T,int>::value)
29 else if( std::is_same<T,double>::value)
31 else if( std::is_same<T,std::string>::value)
49 template<
typename T>
inline 70 bool same = (
getParam(
"expected", expected_value) &&
72 current_value == expected_value ) ;
BT::optional< T > getParam(const std::string &key) const
virtual ~BlackboardPreconditionNode() override=default
const TreeNode * child() const
const std::string & name() const
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
const Blackboard::Ptr & blackboard() const
void setRegistrationName(const std::string ®istration_name)
registrationName() is set by the BehaviorTreeFactory
const NodeParameters & initializationParameters() const
BlackboardPreconditionNode(const std::string &name, const NodeParameters ¶ms)
static const NodeParameters & requiredNodeParameters()
std::unordered_map< std::string, std::string > NodeParameters
NodeStatus status() const
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
void setStatus(NodeStatus new_status)