From af3c38c6cc310e6817d65722f2f57a0583db768f Mon Sep 17 00:00:00 2001 From: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com> Date: Fri, 14 Feb 2025 16:07:10 +0900 Subject: [PATCH] fix(autoware_route_handler): fix a bug of route_handler (#10119) fix bug of route_handler Signed-off-by: Y.Hisaki --- planning/autoware_route_handler/src/route_handler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/planning/autoware_route_handler/src/route_handler.cpp b/planning/autoware_route_handler/src/route_handler.cpp index ba82437bd2d2b..ac525c8915780 100644 --- a/planning/autoware_route_handler/src/route_handler.cpp +++ b/planning/autoware_route_handler/src/route_handler.cpp @@ -69,11 +69,10 @@ bool exists(const std::vector & primitives, const int64_t & id return false; } -template -bool exists(const std::vector & vectors, const T & item) +bool exists(const lanelet::ConstLanelets & vectors, const lanelet::ConstLanelet & item) { for (const auto & i : vectors) { - if (i == item) { + if (i.id() == item.id()) { return true; } }