Skip to content

Commit

Permalink
Fix: correspond to PR 454
Browse files Browse the repository at this point in the history
Signed-off-by: h-suzuki <[email protected]>
  • Loading branch information
h-suzuki-isp committed Mar 5, 2024
1 parent 218a910 commit a06df4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ __rmw_publish_serialized_message(
data.type = FASTRTPS_SERIALIZED_DATA_TYPE_CDR_BUFFER;
data.data = &ser;
data.impl = nullptr; // not used when type is FASTRTPS_SERIALIZED_DATA_TYPE_CDR_BUFFER
TRACETOOLS_TRACEPOINT(rmw_publish, serialized_message);
eprosima::fastrtps::Time_t stamp;
eprosima::fastrtps::Time_t::now(stamp);
TRACETOOLS_TRACEPOINT(rmw_publish, publisher, serialized_message, stamp.to_ns());
if (!info->data_writer_->write(&data)) {
RMW_SET_ERROR_MSG("cannot publish data");
return RMW_RET_ERROR;
Expand Down

0 comments on commit a06df4c

Please sign in to comment.