Skip to content

Commit 87731f5

Browse files
committed
track meas log update
1 parent e3a1845 commit 87731f5

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

perception/multi_object_tracker/src/multi_object_tracker_core.cpp

+10-8
Original file line numberDiff line numberDiff line change
@@ -290,23 +290,25 @@ void MultiObjectTracker::onMeasurement(
290290

291291
if (object.classification.at(0).label == Label::UNKNOWN) {
292292
char buf[120];
293-
snprintf(buf, sizeof(buf), "track meas update idx[%d], x[%.3f], y[%.3f], t[%.3f]\n",
293+
snprintf(buf, sizeof(buf), "track meas update idx[%d], x[%.3f], y[%.3f], t[%.3f], cls[%d]\n",
294294
tracker_idx,
295295
object.kinematics.pose_with_covariance.pose.position.x,
296296
object.kinematics.pose_with_covariance.pose.position.y,
297-
measurement_time.seconds());
297+
measurement_time.seconds(),
298+
object.classification.at(0).label);
298299
debug_message += buf;
299300
}
300301
} else { // not found
301302
(*(tracker_itr))->updateWithoutMeasurement();
302303
if (object.classification.at(0).label == Label::UNKNOWN) {
303304
char buf[120];
304-
snprintf(buf, sizeof(buf), "track meas no update idx[%d], x[%.3f], y[%.3f], t[%.3f]\n",
305-
tracker_idx,
306-
object.kinematics.pose_with_covariance.pose.position.x,
307-
object.kinematics.pose_with_covariance.pose.position.y,
308-
measurement_time.seconds());
309-
debug_message += buf;
305+
snprintf(buf, sizeof(buf), "track meas no update idx[%d], x[%.3f], y[%.3f], t[%.3f], cls[%d]\n",
306+
tracker_idx,
307+
object.kinematics.pose_with_covariance.pose.position.x,
308+
object.kinematics.pose_with_covariance.pose.position.y,
309+
measurement_time.seconds(),
310+
object.classification.at(0).label);
311+
debug_message += buf;
310312
}
311313
}
312314
}

0 commit comments

Comments
 (0)