From dc8b0819739b07ee6c44158eead063e0a8594cca Mon Sep 17 00:00:00 2001 From: satoshi-ota Date: Thu, 22 Feb 2024 18:50:05 +0900 Subject: [PATCH] feat(route_handler): add getter Signed-off-by: satoshi-ota --- .../route_handler/include/route_handler/route_handler.hpp | 1 + planning/route_handler/src/route_handler.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/planning/route_handler/include/route_handler/route_handler.hpp b/planning/route_handler/include/route_handler/route_handler.hpp index 7f7961f438284..83c814b70f0a5 100644 --- a/planning/route_handler/include/route_handler/route_handler.hpp +++ b/planning/route_handler/include/route_handler/route_handler.hpp @@ -327,6 +327,7 @@ class RouteHandler lanelet::ConstLanelets getShoulderLanelets() const; bool isShoulderLanelet(const lanelet::ConstLanelet & lanelet) const; bool isRouteLanelet(const lanelet::ConstLanelet & lanelet) const; + lanelet::ConstLanelets getPreferredLanelets() const; // for path PathWithLaneId getCenterLinePath( diff --git a/planning/route_handler/src/route_handler.cpp b/planning/route_handler/src/route_handler.cpp index 90c44d9eaecd0..68be0ac33e934 100644 --- a/planning/route_handler/src/route_handler.cpp +++ b/planning/route_handler/src/route_handler.cpp @@ -433,6 +433,11 @@ lanelet::ConstLanelets RouteHandler::getRouteLanelets() const return route_lanelets_; } +lanelet::ConstLanelets RouteHandler::getPreferredLanelets() const +{ + return preferred_lanelets_; +} + Pose RouteHandler::getStartPose() const { if (!route_ptr_) {