Skip to content

Commit

Permalink
fix: enable trigger publish when delay_compensation is false
Browse files Browse the repository at this point in the history
  • Loading branch information
saka1-s committed Jan 7, 2025
1 parent 60efdcc commit 261ffac
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 261ffac

Please sign in to comment.