Skip to content

Commit

Permalink
Instrument loaned message publication code path (#698)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jul 26, 2023
1 parent efa94f7 commit 934f403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ __rmw_publish_loaned_message(
RMW_CHECK_ARGUMENT_FOR_NULL(ros_message, RMW_RET_INVALID_ARGUMENT);

auto info = static_cast<CustomPublisherInfo *>(publisher->data);
TRACETOOLS_TRACEPOINT(rmw_publish, ros_message);
if (!info->data_writer_->write(const_cast<void *>(ros_message))) {
RMW_SET_ERROR_MSG("cannot publish data");
return RMW_RET_ERROR;
Expand Down

0 comments on commit 934f403

Please sign in to comment.