Function ros2_medkit_gateway::compat::detail::get_response_introspection

Function Documentation

inline const rosidl_typesupport_introspection_cpp::MessageMembers *ros2_medkit_gateway::compat::detail::get_response_introspection(const rosidl_service_type_support_t *service_ts)

Get the introspection MessageMembers for the response message of a service. The service_ts coming from “rosidl_typesupport_cpp” is a dispatch handle. We use the dispatch function to obtain the introspection-flavor handle, then cast its data to ServiceMembers to get response_members_. Both rosidl_typesupport_cpp::get_service_typesupport_handle_function() and rosidl_typesupport_introspection_cpp::ServiceMembers exist in Humble.