diff --git a/rmw_fastrtps_shared_cpp/src/rmw_request.cpp b/rmw_fastrtps_shared_cpp/src/rmw_request.cpp index 5cf04f46d..ff3591f5a 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_request.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_request.cpp @@ -129,7 +129,8 @@ __rmw_take_request( { // Get header rmw_fastrtps_shared_cpp::copy_from_fastrtps_guid_to_byte_array( - request.sample_identity_.writer_guid(), + // Keep the original request publisher guid + writer_guid, request_header->request_id.writer_guid); request_header->request_id.sequence_number = ((int64_t)request.sample_identity_.sequence_number().high) <<