Skip to content

Commit 1e7350e

Browse files
fix(map_based_prediction): limit the size of predicted path (#5761)
* fix(map_based_prediction): limit the size of predicted path Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 09b1fea commit 1e7350e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

perception/map_based_prediction/src/map_based_prediction_node.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ void MapBasedPredictionNode::objectsCallback(const TrackedObjects::ConstSharedPt
995995

996996
for (auto & predicted_path : predicted_paths) {
997997
predicted_path.confidence = predicted_path.confidence / sum_confidence;
998+
if (predicted_object.kinematics.predicted_paths.size() >= 100) break;
998999
predicted_object.kinematics.predicted_paths.push_back(predicted_path);
9991000
}
10001001
output.objects.push_back(predicted_object);

0 commit comments

Comments
 (0)