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

Function CallbackB

btcpp_ros2_samples/src/bool_server.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void CallbackB(const std::shared_ptr<std_srvs::srv::SetBool::Request> request,
15 std::shared_ptr<std_srvs::srv::SetBool::Response> response)
16{
17 response->success = request->data;
18 auto logger = rclcpp::get_logger("rclcpp");
19 RCLCPP_INFO(logger, "Incoming request B: %s", request->data ? "true" : "false");
20}
21
22int main(int argc, char** argv)
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected