Struct Client::FutureAndRequestId

Nested Relationships

This struct is a nested type of Template Class Client.

Inheritance Relationships

Base Type

Struct Documentation

struct FutureAndRequestId : public rclcpp::detail::FutureAndRequestId<std::future<SharedResponse>>

A convenient Client::Future and request id pair.

Public members:

  • future: a std::future<SharedResponse>.

  • request_id: the request id associated with the future.

All the other methods are equivalent to the ones std::future provides.

Public Functions

inline operator SharedFuture()

Deprecated, use .future.share() instead.

Allow implicit conversions to std::shared_future by value.

Deprecated:

inline SharedFuture share() noexcept

See std::future::share().