A Python Future represents the eventual result of an asynchronous computation. In ROS 2, rclpy.call_async() returns one for a service request, allowing client code to continue without blocking. section 4.6
Register a callback with add_done_callback(). When the service call reaches the done state, the callback retrieves the response with future.result() and uses its fields. section 4.6
Asynchronous SetBool service call
A timer creates a SetBool request, calls self.cli.call_async(request), and registers self.response_callback. The callback obtains response_future.result() and logs the returned message.








