Class PlayerServiceClientManager

Class Documentation

class PlayerServiceClientManager

Public Functions

explicit PlayerServiceClientManager(std::chrono::seconds request_future_timeout = std::chrono::minutes(30), size_t maximum_request_future_queue = 100)
bool request_future_queue_is_full()
bool register_request_future(rclcpp::GenericClient::FutureAndRequestId &&future_and_request_id, std::weak_ptr<rclcpp::GenericClient> client)
bool wait_for_sent_requests_to_finish(std::shared_ptr<rclcpp::GenericClient> client, std::chrono::duration<double> timeout = std::chrono::seconds(5))

Wait until sent service requests will receive responses from service servers.

Note

If client is a nullptr it will be taken into account all requests from all clients and timeout will be due per each client.

Parameters:
  • client – - Generic service client from which requests was sent.

  • timeout – - Timeout in fraction of seconds to wait for.

Returns:

true if service requests successfully finished, otherwise false.