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;
BT::NodeStatus SaySomethingSimple(BT::TreeNode &self)
BT::NodeStatus SayHello()
void RegisterNodes(BT::BehaviorTreeFactory &factory)
Abstract base class for Behavior Tree Nodes.
NodeStatus tick() override
Method to be implemented by the user.
BT::NodeStatus CheckBattery()
BT::NodeStatus CheckTemperature()
BT_REGISTER_NODES(factory)
NodeStatus tick() override
Method to be implemented by the user.