Skip to content

Commit

Permalink
Fill message_info timestamp (#368)
Browse files Browse the repository at this point in the history
* Fill message_info timestamp
Implements ros2/design#259

Signed-off-by: Luetkebohle Ingo (CR/AEX3) <[email protected]>

* Use rmw_time_point_value_t instead of rmw_time_t

Signed-off-by: Luetkebohle Ingo (CR/AEX3) <[email protected]>
  • Loading branch information
iluetkeb authored Apr 23, 2020
1 parent 46fe636 commit 4d704e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ _assign_message_info(
rmw_message_info_t * message_info,
const eprosima::fastrtps::SampleInfo_t * sinfo)
{
message_info->source_timestamp = sinfo->sourceTimestamp.to_ns();
message_info->received_timestamp = sinfo->receptionTimestamp.to_ns();
rmw_gid_t * sender_gid = &message_info->publisher_gid;
sender_gid->implementation_identifier = identifier;
memset(sender_gid->data, 0, RMW_GID_STORAGE_SIZE);
Expand Down

0 comments on commit 4d704e8

Please sign in to comment.