rclcpp  master
C++ ROS Client Library API
Public Member Functions | List of all members
rclcpp::any_service_callback::AnyServiceCallback< ServiceT > Class Template Reference

#include <any_service_callback.hpp>

Public Member Functions

 AnyServiceCallback ()
 
 AnyServiceCallback (const AnyServiceCallback &)=default
 
template<typename CallbackT , typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, SharedPtrCallback >::value >::type * = nullptr>
void set (CallbackT callback)
 
template<typename CallbackT , typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, SharedPtrWithRequestHeaderCallback >::value >::type * = nullptr>
void set (CallbackT callback)
 
void dispatch (std::shared_ptr< rmw_request_id_t > request_header, std::shared_ptr< typename ServiceT::Request > request, std::shared_ptr< typename ServiceT::Response > response)
 

Constructor & Destructor Documentation

◆ AnyServiceCallback() [1/2]

template<typename ServiceT>
rclcpp::any_service_callback::AnyServiceCallback< ServiceT >::AnyServiceCallback ( )
inline

◆ AnyServiceCallback() [2/2]

template<typename ServiceT>
rclcpp::any_service_callback::AnyServiceCallback< ServiceT >::AnyServiceCallback ( const AnyServiceCallback< ServiceT > &  )
default

Member Function Documentation

◆ set() [1/2]

template<typename ServiceT>
template<typename CallbackT , typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, SharedPtrCallback >::value >::type * = nullptr>
void rclcpp::any_service_callback::AnyServiceCallback< ServiceT >::set ( CallbackT  callback)
inline

◆ set() [2/2]

template<typename ServiceT>
template<typename CallbackT , typename std::enable_if< rclcpp::function_traits::same_arguments< CallbackT, SharedPtrWithRequestHeaderCallback >::value >::type * = nullptr>
void rclcpp::any_service_callback::AnyServiceCallback< ServiceT >::set ( CallbackT  callback)
inline

◆ dispatch()

template<typename ServiceT>
void rclcpp::any_service_callback::AnyServiceCallback< ServiceT >::dispatch ( std::shared_ptr< rmw_request_id_t request_header,
std::shared_ptr< typename ServiceT::Request >  request,
std::shared_ptr< typename ServiceT::Response >  response 
)
inline

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