Skip to content

Commit

Permalink
fix(avoidance): use lowest instead of min (autowarefoundation#3649)
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed May 10, 2023
1 parent 1160bd6 commit 45a4d43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void fillLongitudinalAndLengthByClosestEnvelopeFootprint(
const PathWithLaneId & path, const Point & ego_pos, ObjectData & obj)
{
double min_distance = std::numeric_limits<double>::max();
double max_distance = std::numeric_limits<double>::min();
double max_distance = std::numeric_limits<double>::lowest();
for (const auto & p : obj.envelope_poly.outer()) {
const auto point = tier4_autoware_utils::createPoint(p.x(), p.y(), 0.0);
const double arc_length = motion_utils::calcSignedArcLength(path.points, ego_pos, point);
Expand Down

0 comments on commit 45a4d43

Please sign in to comment.