Skip to content

Commit

Permalink
fix humble error
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Jul 7, 2022
1 parent fbda853 commit 5096a10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ PathPointWithLaneId GeometricParallelParking::generateArcPathPoint(
// Use z of lanelet closest point because z of goal is 0.
// https://github.com/autowarefoundation/autoware.universe/issues/711
double min_distance = std::numeric_limits<double>::max();
for (const auto pt : current_lane.centerline3d()) {
for (const auto & pt : current_lane.centerline3d()) {
const double distance =
calcDistance2d(p.point.pose, lanelet::utils::conversion::toGeomMsgPt(pt));
if (distance < min_distance) {
Expand Down

0 comments on commit 5096a10

Please sign in to comment.