Skip to content

Commit

Permalink
fix: enlarge publish range upper limit
Browse files Browse the repository at this point in the history
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
  • Loading branch information
technolojin committed Apr 9, 2024
1 parent abfbc10 commit 079f34d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void MultiObjectTracker::onTimer()
// check the publish period
const auto elapsed_time = (current_time - last_published_time_).seconds();
// if the elapsed time is over the period, publish objects with prediction
constexpr double maximum_latency_ratio = 1.11; // 11% margin
constexpr double maximum_latency_ratio = 1.4; // 40% margin
const double maximum_publish_latency = publisher_period_ * maximum_latency_ratio;
if (elapsed_time > maximum_publish_latency) {
checkAndPublish(current_time);
Expand Down

0 comments on commit 079f34d

Please sign in to comment.