MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / tick

Method tick

tests/gtest_subtree.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 {}
56
57 BT::NodeStatus tick() override
58 {
59 auto msg = getInput<std::string>("in");
60 if(!msg)
61 {
62 throw BT::RuntimeError("missing required input [message]: ", msg.error());
63 }
64 setOutput("out", msg.value());
65 return BT::NodeStatus::SUCCESS;
66 }
67
68 static BT::PortsList providedPorts()
69 {

Callers

nothing calls this directly

Calls 2

RuntimeErrorClass · 0.85
valueMethod · 0.45

Tested by

no test coverage detected