Skip to content

Commit 255ebe6

Browse files
HongyiSunkechxu
authored andcommitted
Prediction: fix bug for unexpected return on GroupObstaclesByObstacleIds
1 parent b8526d7 commit 255ebe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/prediction/evaluator/evaluator_manager.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ void GroupObstaclesByObstacleIds(ObstaclesContainer* const obstacles_container,
6969
Obstacle* obstacle_ptr = obstacles_container->GetObstacle(obstacle_id);
7070
if (obstacle_ptr == nullptr) {
7171
AERROR << "Null obstacle [" << obstacle_id << "] found";
72-
return;
72+
continue;
7373
}
7474
if (obstacle_ptr->IsStill()) {
7575
ADEBUG << "Ignore still obstacle [" << obstacle_id << "]";
76-
return;
76+
continue;
7777
}
7878
const Feature& feature = obstacle_ptr->latest_feature();
7979
if (feature.priority().priority() == ObstaclePriority::IGNORE) {
8080
ADEBUG << "Skip ignored obstacle [" << obstacle_id << "]";
81-
return;
81+
continue;
8282
} else if (feature.priority().priority() == ObstaclePriority::CAUTION) {
8383
caution_thread_idx = caution_thread_idx % FLAGS_max_caution_thread_num;
8484
(*id_obstacle_map)[caution_thread_idx].push_back(obstacle_ptr);

0 commit comments

Comments
 (0)