| 41 | )"; |
| 42 | |
| 43 | int main(int argc, char** argv) |
| 44 | { |
| 45 | rclcpp::init(argc, argv); |
| 46 | auto nh = std::make_shared<rclcpp::Node>("subscriber_test"); |
| 47 | |
| 48 | BehaviorTreeFactory factory; |
| 49 | |
| 50 | RosNodeParams params; |
| 51 | params.nh = nh; |
| 52 | params.default_port_value = "btcpp_string"; |
| 53 | factory.registerNodeType<ReceiveString>("ReceiveString", params); |
| 54 | |
| 55 | auto tree = factory.createTreeFromText(xml_text); |
| 56 | |
| 57 | while(rclcpp::ok()) |
| 58 | { |
| 59 | tree.tickWhileRunning(); |
| 60 | } |
| 61 | |
| 62 | return 0; |
| 63 | } |
nothing calls this directly
no outgoing calls
no test coverage detected