From c3c1e93be3021fbd78545d0aff90591f9345ba81 Mon Sep 17 00:00:00 2001 From: Yukihito Saito Date: Tue, 4 Jun 2024 11:36:28 +0900 Subject: [PATCH] cosmetic change Signed-off-by: Yukihito Saito --- .../map_based_prediction/src/map_based_prediction_node.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/perception/map_based_prediction/src/map_based_prediction_node.cpp b/perception/map_based_prediction/src/map_based_prediction_node.cpp index e04c55178d2ac..a00a43545cf23 100644 --- a/perception/map_based_prediction/src/map_based_prediction_node.cpp +++ b/perception/map_based_prediction/src/map_based_prediction_node.cpp @@ -911,12 +911,7 @@ PredictedObject MapBasedPredictionNode::convertToPredictedObject( { PredictedObject predicted_object; predicted_object.kinematics = convertToPredictedKinematics(tracked_object.kinematics); - autoware_perception_msgs::msg::ObjectClassification classification; - for (size_t i = 0; i < tracked_object.classification.size(); i++) { - classification.label = tracked_object.classification[i].label; - classification.probability = tracked_object.classification[i].probability; - predicted_object.classification.push_back(classification); - } + predicted_object.classification = tracked_object.classification; predicted_object.object_id = tracked_object.object_id; predicted_object.shape.type = tracked_object.shape.type; predicted_object.shape.footprint = tracked_object.shape.footprint;