@@ -290,23 +290,25 @@ void MultiObjectTracker::onMeasurement(
290
290
291
291
if (object.classification .at (0 ).label == Label::UNKNOWN) {
292
292
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 " ,
294
294
tracker_idx,
295
295
object.kinematics .pose_with_covariance .pose .position .x ,
296
296
object.kinematics .pose_with_covariance .pose .position .y ,
297
- measurement_time.seconds ());
297
+ measurement_time.seconds (),
298
+ object.classification .at (0 ).label );
298
299
debug_message += buf;
299
300
}
300
301
} else { // not found
301
302
(*(tracker_itr))->updateWithoutMeasurement ();
302
303
if (object.classification .at (0 ).label == Label::UNKNOWN) {
303
304
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;
310
312
}
311
313
}
312
314
}
0 commit comments