Go to the documentation of this file.
15 std::cout <<
"[ Battery: OK ]" << std::endl;
21 std::cout <<
"[ Temperature: OK ]" << std::endl;
27 std::cout <<
"Robot says: Hello World" << std::endl;
34 std::cout <<
"GripperInterface::open" << std::endl;
40 std::cout <<
"GripperInterface::close" << std::endl;
47 std::cout <<
"ApproachObject: " << this->
name() << std::endl;
53 auto msg = getInput<std::string>(
"message");
59 std::cout <<
"Robot says: " << msg.value() << std::endl;
65 auto msg =
self.getInput<std::string>(
"message");
71 std::cout <<
"Robot says: " << msg.value() << std::endl;
Abstract base class for Behavior Tree Nodes.
BT::NodeStatus CheckBattery()
BT::NodeStatus SaySomethingSimple(BT::TreeNode &self)
NodeStatus tick() override
Method to be implemented by the user.
BT_REGISTER_NODES(factory)
NodeStatus tick() override
Method to be implemented by the user.
void RegisterNodes(BT::BehaviorTreeFactory &factory)
const std::string & name() const
Name of the instance, not the type.
BT::NodeStatus SayHello()
BT::NodeStatus CheckTemperature()