Skip to content

Commit

Permalink
Merge pull request #1751 from saka1-s/fix/multi-object-tracker-publis…
Browse files Browse the repository at this point in the history
…h-without-comp-v0.29.1

fix: enable trigger publish when delay_compensation is false
  • Loading branch information
saka1-s authored Jan 9, 2025
2 parents 60efdcc + 261ffac commit 726c04e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ void MultiObjectTracker::onTrigger()
const bool is_objects_ready = input_manager_->getObjects(current_time, objects_list);
if (!is_objects_ready) return;
onMessage(objects_list);
// Publish without delay compensation
if (!publish_timer_) {
const auto latest_object_time = rclcpp::Time(objects_list.back().second.header.stamp);
checkAndPublish(latest_object_time);
}
}

void MultiObjectTracker::onTimer()
Expand Down

0 comments on commit 726c04e

Please sign in to comment.