Skip to content

Commit 48a8861

Browse files
committed
fix: change no-object message level
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent c589c3a commit 48a8861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perception/multi_object_tracker/src/processor/input_manager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,15 @@ bool InputManager::getObjects(const rclcpp::Time & now, ObjectsList & objects_li
321321
latest_object_time_ = rclcpp::Time(objects_list.back().second.header.stamp);
322322
} else {
323323
// check time jump
324-
if ((now - latest_object_time_).seconds() < 0.0) {
324+
if (now < latest_object_time_) {
325325
RCLCPP_WARN(
326326
node_.get_logger(),
327327
"InputManager::getObjects Time jump detected, now: %f, latest_object_time_: %f",
328328
now.seconds(), latest_object_time_.seconds());
329329
latest_object_time_ =
330330
now - rclcpp::Duration::from_seconds(3.0); // reset the latest object time to 3 seconds ago
331331
} else {
332-
RCLCPP_WARN(
332+
RCLCPP_DEBUG(
333333
node_.get_logger(),
334334
"InputManager::getObjects No objects in the object list, object time band from %f to %f",
335335
(now - object_oldest_time).seconds(), (now - object_latest_time).seconds());

0 commit comments

Comments
 (0)