Skip to content

Commit

Permalink
fix(utils): fix envelope polygon update logic (#9123)
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota authored Oct 21, 2024
1 parent a303f36 commit 93867c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ void fillObjectEnvelopePolygon(
calcErrorEclipseLongRadius(object_data.object.kinematics.initial_pose_with_covariance);

if (error_eclipse_long_radius > object_parameter.th_error_eclipse_long_radius) {
if (error_eclipse_long_radius < object_data.error_eclipse_max) {
if (error_eclipse_long_radius < same_id_obj->error_eclipse_max) {
object_data.error_eclipse_max = error_eclipse_long_radius;
object_data.envelope_poly = one_shot_envelope_poly;
return;
Expand Down

0 comments on commit 93867c5

Please sign in to comment.