File service_common.hpp

FileList > astutedds > rmw > service_common.hpp

Go to the source code of this file

Shared helper for deriving DDS topic names from ROS 2 service names. More...

  • #include <string>

Public Functions

Type Name
std::string service_core (const char * service_name)

Detailed Description

Used by both the service-availability check (rmw_service_server_is_available) and the graph client/service count queries (rmw_count_clients, rmw_count_services) to build the rq/<core>Request / rr/<core>Reply topic names that identify a service's request/reply DDS topics.

Public Functions Documentation

function service_core

std::string service_core (
    const char * service_name
) 

Strip leading slash(es) from a ROS 2 service name, mirroring the topic-name convention so the resulting DDS topics (rq/<core>Request, rr/<core>Reply) match what other rmw implementations (FastRTPS, CycloneDDS, …) produce for the same service — required for cross-vendor interop.



The documentation for this class was generated from the following file include/astutedds/rmw/service_common.hpp