TechTheTime-HighLevel 0.0.1
The high level robot's code using ros2-foxy for the robotics competition(Erobot-2022)
ClientT< T, Treq, Rs > Class Template Reference

ClientT class. More...

#include <ClientT.hpp>

Inheritance diagram for ClientT< T, Treq, Rs >:

Public Types

using shared_future_T = typename rclcpp::Client< T >::SharedFuture
 
using shared_ptr_T = typename rclcpp::Client< T >::SharedPtr
 

Public Member Functions

 ClientT (const std::string &client_name)
 
auto send (Rs... args)
 
void set_shared (std::shared_ptr< ClientT< T, Treq, Rs... > > ptr)
 
void wait_for_connection ()
 

Private Attributes

shared_ptr_T client
 
std::string client_name
 
struct_wrapper< Treq, Rs... > request
 
std::shared_ptr< ClientT< T, Treq, Rs... > > self_ptr
 

Detailed Description

template<class T, class Treq, class... Rs>
class ClientT< T, Treq, Rs >

ClientT class.

Member Typedef Documentation

◆ shared_future_T

using shared_future_T = typename rclcpp::Client<T>::SharedFuture

◆ shared_ptr_T

using shared_ptr_T = typename rclcpp::Client<T>::SharedPtr

Constructor & Destructor Documentation

◆ ClientT()

ClientT ( const std::string &  client_name)

Member Function Documentation

◆ send()

auto send ( Rs...  args)

◆ set_shared()

void set_shared ( std::shared_ptr< ClientT< T, Treq, Rs... > >  ptr)

◆ wait_for_connection()

void wait_for_connection ( )

Member Data Documentation

◆ client

shared_ptr_T client
private

◆ client_name

std::string client_name
private

◆ request

struct_wrapper<Treq, Rs...> request
private

◆ self_ptr

std::shared_ptr<ClientT<T, Treq, Rs...> > self_ptr
private

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