Skip to content

Commit 96c72bd

Browse files
committed
Try different log
1 parent 9d88868 commit 96c72bd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

perception/multi_object_tracker/src/multi_object_tracker_core.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ void MultiObjectTracker::runProcess(
292292
direct_assignment, reverse_assignment);
293293
}
294294

295-
/*
296295
for (size_t measurement_idx = 0; measurement_idx < transformed_objects.objects.size(); ++measurement_idx) {
297296
const autoware_perception_msgs::msg::DetectedObject & measurement_object = transformed_objects.objects.at(measurement_idx);
298297
auto meas_tracker_idx = reverse_assignment.find(measurement_idx);
@@ -318,15 +317,15 @@ void MultiObjectTracker::runProcess(
318317
debug_message += buf;
319318
}
320319
}
321-
*/
320+
322321

323322
/* tracker update */
324323
processor_->update(transformed_objects, *self_transform, direct_assignment, channel_index);
325324

326325
/* tracker pruning */
327326
processor_->prune(measurement_time);
328327

329-
//RCLCPP_INFO(this->get_logger(), "\nobject links:\n%s", debug_message.c_str());
328+
RCLCPP_INFO(this->get_logger(), "\nobject links:\n%s", debug_message.c_str());
330329

331330
/* spawn new tracker */
332331
if (input_manager_->isChannelSpawnEnabled(channel_index)) {

perception/multi_object_tracker/src/processor/processor.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,37 @@ void TrackerProcessor::update(
6767
(*(tracker_itr))
6868
->updateWithMeasurement(associated_object, time, self_transform, channel_index);
6969

70+
/*
7071
char buf[120];
7172
snprintf(buf, sizeof(buf), "track meas update idx[%d], x[%.3f], y[%.3f], cls[%d]\n",
7273
tracker_idx,
7374
associated_object.kinematics.pose_with_covariance.pose.position.x,
7475
associated_object.kinematics.pose_with_covariance.pose.position.y,
7576
associated_object.classification.at(0).label);
7677
debug_message += buf;
78+
*/
7779

7880

7981
} else { // not found
8082
(*(tracker_itr))->updateWithoutMeasurement(time);
8183

84+
/*
8285
char buf[120];
8386
snprintf(buf, sizeof(buf), "track no meas update idx[%d], x[%.3f], y[%.3f], cls[%d]\n",
8487
tracker_idx,
8588
associated_object.kinematics.pose_with_covariance.pose.position.x,
8689
associated_object.kinematics.pose_with_covariance.pose.position.y,
8790
associated_object.classification.at(0).label);
8891
debug_message += buf;
92+
*/
8993

9094
}
9195
}
9296
// Add at the end of the function, before return
97+
/*
9398
if (!debug_message.empty()) {
9499
RCLCPP_INFO(rclcpp::get_logger("multi_object_tracker"), "\nobject updates:\n%s", debug_message.c_str());
95-
}
100+
}*/
96101
}
97102

98103
void TrackerProcessor::spawn(

0 commit comments

Comments
 (0)