Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
Public Types | Public Member Functions | Protected Attributes | List of all members
nav2::ServiceServer< ServiceT > Class Template Reference

A simple wrapper on ROS2 services server. More...

#include <nav2_ros_common/include/nav2_ros_common/service_server.hpp>

Collaboration diagram for nav2::ServiceServer< ServiceT >:
Collaboration graph
[legend]

Public Types

using RequestType = typename ServiceT::Request
 
using ResponseType = typename ServiceT::Response
 
using CallbackType = std::function< void(const std::shared_ptr< rmw_request_id_t >, const std::shared_ptr< RequestType >, std::shared_ptr< ResponseType >)>
 
using SharedPtr = std::shared_ptr< ServiceServer< ServiceT > >
 
using UniquePtr = std::unique_ptr< ServiceServer< ServiceT > >
 

Public Member Functions

template<typename NodeT >
 ServiceServer (const std::string &service_name, const NodeT &node, CallbackType callback, rclcpp::CallbackGroup::SharedPtr callback_group=nullptr)
 

Protected Attributes

std::string service_name_
 
CallbackType callback_
 
rclcpp::Service< ServiceT >::SharedPtr server_
 

Detailed Description

template<class ServiceT>
class nav2::ServiceServer< ServiceT >

A simple wrapper on ROS2 services server.

Definition at line 32 of file service_server.hpp.


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