Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_multi_object_tracker): enable trigger publish when delay_compensation is false #8484

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@
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);

Check warning on line 216 in perception/autoware_multi_object_tracker/src/multi_object_tracker_node.cpp

View check run for this annotation

Codecov / codecov/patch

perception/autoware_multi_object_tracker/src/multi_object_tracker_node.cpp#L215-L216

Added lines #L215 - L216 were not covered by tests
}
}

void MultiObjectTracker::onTimer()
Expand All @@ -222,7 +228,7 @@
onMessage(objects_list);
}

// Publish
// Publish with delay compensation
checkAndPublish(current_time);
}

Expand Down
Loading