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

Method tick

btcpp_ros2_samples/src/sleep_client.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 {}
23
24 BT::NodeStatus tick() override
25 {
26 std::string msg;
27 if(getInput("message", msg))
28 {
29 std::cout << "PrintValue: " << msg << std::endl;
30 return NodeStatus::SUCCESS;
31 }
32 else
33 {
34 std::cout << "PrintValue FAILED " << std::endl;
35 return NodeStatus::FAILURE;
36 }
37 }
38
39 static BT::PortsList providedPorts()
40 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected