Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
A simple wrapper on ROS2 services server. More...
#include <nav2_ros_common/include/nav2_ros_common/service_server.hpp>
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_ |
A simple wrapper on ROS2 services server.
Definition at line 32 of file service_server.hpp.