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

Method onResultReceived

btcpp_ros2_samples/src/sleep_action.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11NodeStatus SleepAction::onResultReceived(const RosActionNode::WrappedResult& wr)
12{
13 RCLCPP_INFO(logger(), "%s: onResultReceived. Done = %s", name().c_str(),
14 wr.result->done ? "true" : "false");
15
16 return wr.result->done ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
17}
18
19NodeStatus SleepAction::onFailure(ActionNodeErrorCode error)
20{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected