Skip to content

Commit

Permalink
Fill service_info timestamps from sample_info (#378)
Browse files Browse the repository at this point in the history
Signed-off-by: Luetkebohle Ingo (CR/AEX3) <ingo.luetkebohle@de.bosch.com>
  • Loading branch information
iluetkeb committed May 5, 2020
1 parent 6dec5cf commit 073e18a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ __rmw_take_request(
request_header->request_id.sequence_number =
((int64_t)request.sample_identity_.sequence_number().high) <<
32 | request.sample_identity_.sequence_number().low;
request_header->source_timestamp = request.sample_info_.sourceTimestamp.to_ns();
request_header->received_timestamp = request.sample_info_.receptionTimestamp.to_ns();

delete request.buffer_;

Expand Down

0 comments on commit 073e18a

Please sign in to comment.