Skip to content

Commit 59d6c3e

Browse files
committed
chore: remove unused variables
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent 6cee80e commit 59d6c3e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

perception/multi_object_tracker/include/multi_object_tracker/multi_object_tracker_core.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class MultiObjectTracker : public rclcpp::Node
7878
// publish timer
7979
rclcpp::TimerBase::SharedPtr publish_timer_;
8080
rclcpp::Time last_published_time_;
81-
double publisher_period_;
8281

8382
// internal states
8483
std::string world_frame_id_; // tracking frame

perception/multi_object_tracker/src/multi_object_tracker_core.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ MultiObjectTracker::MultiObjectTracker(const rclcpp::NodeOptions & node_options)
153153
// If the delay compensation is enabled, the timer is used to publish the output at the correct
154154
// time.
155155
if (enable_delay_compensation) {
156-
publisher_period_ = 1.0 / publish_rate; // [s]
157-
constexpr double timer_multiplier = 1.0; // 2 times frequent for publish timing check
158-
const auto timer_period = rclcpp::Rate(publish_rate * timer_multiplier).period();
156+
const auto timer_period = rclcpp::Rate(publish_rate).period();
159157
publish_timer_ = rclcpp::create_timer(
160158
this, get_clock(), timer_period, std::bind(&MultiObjectTracker::onTimer, this));
161159
}

0 commit comments

Comments
 (0)