rclcpp
master
C++ ROS Client Library API
|
#include <service.hpp>
Public Types | |
using | CallbackType = std::function< void(const std::shared_ptr< typename ServiceT::Request >, std::shared_ptr< typename ServiceT::Response >)> |
using | CallbackWithHeaderType = std::function< void(const std::shared_ptr< rmw_request_id_t >, const std::shared_ptr< typename ServiceT::Request >, std::shared_ptr< typename ServiceT::Response >)> |
Public Member Functions | |
Service (std::shared_ptr< rcl_node_t > node_handle, const std::string &service_name, AnyServiceCallback< ServiceT > any_callback, rcl_service_options_t &service_options) | |
Service (std::shared_ptr< rcl_node_t > node_handle, rcl_service_t *service_handle, AnyServiceCallback< ServiceT > any_callback) | |
Service ()=delete | |
virtual | ~Service () |
std::shared_ptr< void > | create_request () |
std::shared_ptr< rmw_request_id_t > | create_request_header () |
void | handle_request (std::shared_ptr< rmw_request_id_t > request_header, std::shared_ptr< void > request) |
void | send_response (std::shared_ptr< rmw_request_id_t > req_id, std::shared_ptr< typename ServiceT::Response > response) |
Public Member Functions inherited from rclcpp::service::ServiceBase | |
ServiceBase (std::shared_ptr< rcl_node_t > node_handle, const std::string &service_name) | |
ServiceBase (std::shared_ptr< rcl_node_t > node_handle) | |
virtual | ~ServiceBase () |
std::string | get_service_name () |
const rcl_service_t * | get_service_handle () |
Additional Inherited Members | |
Protected Member Functions inherited from rclcpp::service::ServiceBase | |
rcl_node_t * | get_rcl_node_handle () const |
Protected Attributes inherited from rclcpp::service::ServiceBase | |
std::shared_ptr< rcl_node_t > | node_handle_ |
rcl_service_t * | service_handle_ = nullptr |
std::string | service_name_ |
bool | owns_rcl_handle_ = true |
using rclcpp::service::Service< ServiceT >::CallbackType = std::function< void( const std::shared_ptr<typename ServiceT::Request>, std::shared_ptr<typename ServiceT::Response>)> |
using rclcpp::service::Service< ServiceT >::CallbackWithHeaderType = std::function< void( const std::shared_ptr<rmw_request_id_t>, const std::shared_ptr<typename ServiceT::Request>, std::shared_ptr<typename ServiceT::Response>)> |
|
inline |
|
inline |
|
delete |
|
inlinevirtual |
|
inlinevirtual |
Implements rclcpp::service::ServiceBase.
|
inlinevirtual |
Implements rclcpp::service::ServiceBase.
|
inlinevirtual |
Implements rclcpp::service::ServiceBase.
|
inline |