ROS 2 rclcpp + rcl - kilted  kilted
ROS 2 C++ Client Library with ROS Client Library
Public Member Functions | List of all members
rclcpp::GenericClient::FutureAndRequestId Struct Reference

A convenient GenericClient::Future and request id pair. More...

#include <rclcpp/generic_client.hpp>

Inheritance diagram for rclcpp::GenericClient::FutureAndRequestId:
Inheritance graph
[legend]
Collaboration diagram for rclcpp::GenericClient::FutureAndRequestId:
Collaboration graph
[legend]

Public Member Functions

SharedFuture share () noexcept
 See std::future::share().
 
 FutureAndRequestId (FutureAndRequestId &&other) noexcept=default
 Move constructor.
 
 FutureAndRequestId (const FutureAndRequestId &other)=delete
 Deleted copy constructor, each instance is a unique owner of the future.
 
FutureAndRequestIdoperator= (FutureAndRequestId &&other) noexcept=default
 Move assignment.
 
FutureAndRequestIdoperator= (const FutureAndRequestId &other)=delete
 Deleted copy assignment, each instance is a unique owner of the future.
 
 ~FutureAndRequestId ()=default
 Destructor.
 
- Public Member Functions inherited from rclcpp::detail::FutureAndRequestId< Future >
 FutureAndRequestId (Future impl, int64_t req_id)
 
 FutureAndRequestId (FutureAndRequestId &&other) noexcept=default
 Move constructor.
 
 FutureAndRequestId (const FutureAndRequestId &other)=delete
 Deleted copy constructor, each instance is a unique owner of the future.
 
 operator Future & ()
 Allow implicit conversions to std::future by reference.
 
auto get ()
 See std::future::get().
 
bool valid () const noexcept
 See std::future::valid().
 
void wait () const
 See std::future::wait().
 
std::future_status wait_for (const std::chrono::duration< Rep, Period > &timeout_duration) const
 See std::future::wait_for().
 
std::future_status wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time) const
 See std::future::wait_until().
 
FutureAndRequestIdoperator= (FutureAndRequestId &&other) noexcept=default
 Move assignment.
 
FutureAndRequestIdoperator= (const FutureAndRequestId &other)=delete
 Deleted copy assignment, each instance is a unique owner of the future.
 
 ~FutureAndRequestId ()=default
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from rclcpp::detail::FutureAndRequestId< Future >
Future future
 
int64_t request_id
 

Detailed Description

A convenient GenericClient::Future and request id pair.

Public members:

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

Definition at line 62 of file generic_client.hpp.


The documentation for this struct was generated from the following file: