Skip to content

Commit

Permalink
Merge pull request #24 from NVIDIA-ISAAC-ROS/hotfix-release-dp3.1-2
Browse files Browse the repository at this point in the history
Update timestamp behavior
  • Loading branch information
jaiveersinghNV authored Aug 14, 2023
2 parents 538c7bb + 4ace417 commit d31cf36
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions isaac_ros_dope/gxf/dope/dope_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,13 @@ gxf_result_t DopeDecoder::tick() noexcept {
}
auto posearray_message = maybe_posearray_message.value();

auto maybe_added_timestamp = AddInputTimestampToOutput(
posearray_message, maybe_beliefmaps_message.value());
if (!maybe_added_timestamp) {
GXF_LOG_ERROR("Failed to add timestamp");
return gxf::ToResultCode(maybe_added_timestamp);
}

// Copy tensor data over to a more portable form
std::array<cv::Mat, kInputMapsChannels> maps;
const int input_map_row{belief_maps->shape().dimension(2)};
Expand Down Expand Up @@ -536,13 +543,7 @@ gxf_result_t DopeDecoder::tick() noexcept {
return GXF_FAILURE;
}
}

auto maybe_added_timestamp = AddInputTimestampToOutput(
posearray_message, maybe_beliefmaps_message.value());
if (!maybe_added_timestamp) {
return gxf::ToResultCode(maybe_added_timestamp);
}


return gxf::ToResultCode(
posearray_transmitter_->publish(std::move(posearray_message)));
}
Expand Down

0 comments on commit d31cf36

Please sign in to comment.