Class ServiceServerProxy

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< ServiceServerProxy >

Class Documentation

class ServiceServerProxy : public std::enable_shared_from_this<ServiceServerProxy>

Service server proxy to handle all service clients.

Public Types

using SharedPtr = std::shared_ptr<ServiceServerProxy>
using SharedRequestID = std::shared_ptr<rmw_request_id_t>

Public Functions

ServiceServerProxy(const std::string &base_service_name, const std::string &service_type, rclcpp::Node::SharedPtr &node, RequestReceiveQueue::SharedPtr &request_queue)
~ServiceServerProxy()
void send_response(const SharedRequestID &request_id, rclcpp::GenericService::SharedResponse response)

Send a response to the load balancing service client.

Parameters:
  • request_id – Shared pointer to rmw_request_id_t

  • response – Untyped response message

const char *get_service_name()

Get service name of load balancing service server proxy.

Returns:

The service name of load balancing service server proxy