Skip to content

Commit d01e7b5

Browse files
committed
fix: set minimum pedestrian size
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
1 parent c497588 commit d01e7b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

perception/multi_object_tracker/src/tracker/model/pedestrian_tracker.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ bool PedestrianTracker::measureWithShape(
216216
return false;
217217
}
218218

219+
// set minimum size
220+
bounding_box_.length = std::max(bounding_box_.length, 0.3);
221+
bounding_box_.width = std::max(bounding_box_.width, 0.3);
222+
bounding_box_.height = std::max(bounding_box_.height, 0.8);
223+
cylinder_.width = std::max(cylinder_.width, 0.3);
224+
cylinder_.height = std::max(cylinder_.height, 0.8);
225+
219226
return true;
220227
}
221228

0 commit comments

Comments
 (0)