| 8 | } |
| 9 | |
| 10 | BT::NodeStatus SetBoolService::onResponseReceived(const Response::SharedPtr& response) |
| 11 | { |
| 12 | std::cout << "onResponseReceived " << std::endl; |
| 13 | if(response->success) |
| 14 | { |
| 15 | RCLCPP_INFO(logger(), "SetBool service succeeded."); |
| 16 | return BT::NodeStatus::SUCCESS; |
| 17 | } |
| 18 | else |
| 19 | { |
| 20 | RCLCPP_INFO(logger(), "SetBool service failed: %s", response->message.c_str()); |
| 21 | return BT::NodeStatus::FAILURE; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | BT::NodeStatus SetBoolService::onFailure(BT::ServiceNodeErrorCode error) |
| 26 | { |
nothing calls this directly
no outgoing calls
no test coverage detected