Skip to content

Commit

Permalink
fix: variable name fix
Browse files Browse the repository at this point in the history
Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin committed Sep 2, 2024
1 parent e382a16 commit 8ab4fbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void MultiObjectTracker::onTimer()
const rclcpp::Time current_time = this->now();

// ensure minimum interval: room for the next process(prediction)
const double minimum_publish_interval = publisher_period_ * minimumPublishIntervalRatio;
const double minimum_publish_interval = publisher_period_ * minimum_publish_interval_ratio;
const auto elapsed_time = (current_time - last_published_time_).seconds();

Check warning on line 229 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#L228-L229

Added lines #L228 - L229 were not covered by tests
if (elapsed_time < minimum_publish_interval) {
return;
Expand All @@ -236,7 +236,7 @@ void MultiObjectTracker::onTimer()

// if there was no update, publish if the elapsed time is longer than the maximum publish latency
// in this case, it will perform extrapolate/remove old objects
const double maximum_publish_interval = publisher_period_ * maximumPublishIntervalRatio;
const double maximum_publish_interval = publisher_period_ * maximum_publish_interval_ratio;
should_publish = should_publish || elapsed_time > maximum_publish_interval;

Check warning on line 240 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#L239-L240

Added lines #L239 - L240 were not covered by tests

// Publish with delay compensation to the current time
Expand Down

0 comments on commit 8ab4fbf

Please sign in to comment.