Skip to content

Commit 51b0449

Browse files
committed
More logs
1 parent 3f618ee commit 51b0449

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

perception/multi_object_tracker/src/data_association/data_association.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ void DataAssociation::assign(
138138
++itr;
139139
}
140140
}
141-
for (auto itr = reverse_assignment.begin(); itr != reverse_assignment.end();) {
141+
int i=0;
142+
for (auto itr = reverse_assignment.begin(); itr != reverse_assignment.end(); i++) {
142143
if (src(itr->second, itr->first) < score_threshold_) {
143144
itr = reverse_assignment.erase(itr);
145+
RCLCPP_INFO(rclcpp::get_logger("multi_object_tracker"), "reverse assign trim, 1st[%d], 2nd[%d], score[%.3f], idx[%d]", itr->first, itr->second, src(itr->second, itr->first), i);
144146
continue;
145147
} else {
146148
++itr;
@@ -181,7 +183,6 @@ Eigen::MatrixXd DataAssociation::calcScoreMatrix(
181183
if (passed_gate) {
182184
if (max_dist < dist) {
183185
passed_gate = false;
184-
RCLCPP_INFO(rclcpp::get_logger("multi_object_tracker"), "dist gate fail, dist[%.3f], label[%d]", dist, measurement_label);
185186
}
186187
}
187188
// area gate

perception/multi_object_tracker/src/processor/processor.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ void TrackerProcessor::removeOverlappedTracker(const rclcpp::Time & time)
244244
list_tracker_.remove(sorted_list_tracker[j]);
245245
// Remove from sorted list
246246
sorted_list_tracker.erase(sorted_list_tracker.begin() + j);
247+
248+
RCLCPP_INFO(rclcpp::get_logger("multi_object_tracker"), "overlap trim, cls1[%d] -> cls2[%d]", object1.classification.at(0).label, object2.classification.at(0).label);
249+
247250
--j;
248251

249252
//RCLCPP_INFO(rclcpp::get_logger("multi_object_tracker"), "Erase tracker [%ld] -> [%ld] ", i, j);

0 commit comments

Comments
 (0)