Skip to content

Commit df4699c

Browse files
committed
enhance(polar_assignment_scoring): introduce scoring weights and thresholds for shape change detection
- Added constants for azimuth IoU shape check threshold and area ratio threshold to improve vehicle tracker performance. - Defined scoring weights to prioritize azimuth IoU over radial and height metrics, refining the scoring mechanism for object association.
1 parent a779474 commit df4699c

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

perception/autoware_multi_object_tracker/include/autoware/multi_object_tracker/association/scoring/polar_assignment_scoring.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ inline double normalizeAngle(double angle)
5252
return angle;
5353
}
5454

55+
// Azimuth IoU threshold below which the shape-change check is activated for vehicle trackers
56+
constexpr double AZIMUTH_IOU_SHAPE_CHECK_THRESHOLD = 0.7;
57+
// Area ratio above which the shape change is considered significant
58+
constexpr double AREA_RATIO_THRESHOLD = 2.0;
59+
// Scoring weights: azimuth IoU is prioritized over radial and height
60+
constexpr double W_AZIMUTH = 0.7;
61+
constexpr double W_RADIAL = 0.2;
62+
constexpr double W_HEIGHT = 0.1;
63+
5564
/// Compute polar footprint of an object relative to ego position and heading.
5665
/// Object pose and shape are in the map frame; the result is in ego-centric polar coordinates.
5766
/// @param object Dynamic object with pose and shape in map frame

perception/autoware_multi_object_tracker/lib/association/scoring/polar_assignment_scoring.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ namespace
3232
{
3333
constexpr double MIN_RANGE = 1.0; // Minimum range to avoid azimuth instability [m]
3434
constexpr double MIN_SPAN = 1e-6; // Minimum span to avoid division by zero
35-
36-
// Scoring weights: azimuth IoU is prioritized over radial and height
37-
constexpr double W_AZIMUTH = 0.7;
38-
constexpr double W_RADIAL = 0.2;
39-
constexpr double W_HEIGHT = 0.1;
40-
41-
// Shape-change detection: check triggers when azimuth IoU is low but areas differ a lot
42-
constexpr double AZIMUTH_IOU_SHAPE_CHECK_THRESHOLD = 0.7;
43-
constexpr double AREA_RATIO_THRESHOLD = 2.0;
4435
} // namespace
4536

4637
PolarFootprint computePolarFootprint(

0 commit comments

Comments
 (0)