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 992d9a2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
#include <lanelet2_extension/utility/utilities.hpp>
#include <tier4_autoware_utils/tier4_autoware_utils.hpp>

#ifdef ROS_DISTRO_GALACTIC
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
#include <tf2_eigen/tf2_eigen.hpp>

#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#endif

#include <limits>
#include <string>
Expand Down Expand Up @@ -332,7 +339,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 992d9a2

Please sign in to comment.