| 62 | } |
| 63 | |
| 64 | BT::NodeStatus SaySomethingSimple(BT::TreeNode& self) |
| 65 | { |
| 66 | auto msg = self.getInput<std::string>("message"); |
| 67 | if(!msg) |
| 68 | { |
| 69 | throw BT::RuntimeError("missing required input [message]: ", msg.error()); |
| 70 | } |
| 71 | |
| 72 | std::cout << "Robot says: " << msg.value() << std::endl; |
| 73 | return BT::NodeStatus::SUCCESS; |
| 74 | } |
| 75 | |
| 76 | } // namespace DummyNodes |
nothing calls this directly
no test coverage detected