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

Method ReadInConstructor

tests/gtest_subtree.cpp:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214{
215public:
216 ReadInConstructor(const std::string& name, const BT::NodeConfig& config)
217 : BT::SyncActionNode(name, config)
218 {
219 auto msg = getInput<std::string>("message");
220 if(!msg)
221 {
222 throw BT::RuntimeError("missing required input [message]: ", msg.error());
223 }
224 }
225
226 BT::NodeStatus tick() override
227 {

Callers

nothing calls this directly

Calls 1

RuntimeErrorClass · 0.85

Tested by

no test coverage detected