From c1df2c549833468978afed173294420cf5bed672 Mon Sep 17 00:00:00 2001 From: Dawid Moszynski Date: Thu, 19 Dec 2024 13:19:46 +0100 Subject: [PATCH] ref(traffic_simulator): remove irrelevant toMapPosition --- .../include/traffic_simulator/hdmap_utils/hdmap_utils.hpp | 3 --- .../traffic_simulator/src/hdmap_utils/hdmap_utils.cpp | 6 ------ 2 files changed, 9 deletions(-) diff --git a/simulation/traffic_simulator/include/traffic_simulator/hdmap_utils/hdmap_utils.hpp b/simulation/traffic_simulator/include/traffic_simulator/hdmap_utils/hdmap_utils.hpp index f88afe67e5d..9be623a2cab 100644 --- a/simulation/traffic_simulator/include/traffic_simulator/hdmap_utils/hdmap_utils.hpp +++ b/simulation/traffic_simulator/include/traffic_simulator/hdmap_utils/hdmap_utils.hpp @@ -162,9 +162,6 @@ class HdMapUtils auto getAltitude(const traffic_simulator_msgs::msg::LaneletPose &) const -> double; - auto toMapPosition(const lanelet::Id lanelet_id, const double s) const - -> geometry_msgs::msg::Point; - auto getLaneChangeTrajectory( const geometry_msgs::msg::Pose & from, const traffic_simulator::lane_change::Parameter & lane_change_parameter, diff --git a/simulation/traffic_simulator/src/hdmap_utils/hdmap_utils.cpp b/simulation/traffic_simulator/src/hdmap_utils/hdmap_utils.cpp index b5c91645ce9..eab04aaf2f2 100644 --- a/simulation/traffic_simulator/src/hdmap_utils/hdmap_utils.cpp +++ b/simulation/traffic_simulator/src/hdmap_utils/hdmap_utils.cpp @@ -1098,12 +1098,6 @@ auto HdMapUtils::getNextLaneletIds( return sortAndUnique(ids); } -auto HdMapUtils::toMapPosition(const lanelet::Id lanelet_id, const double s) const - -> geometry_msgs::msg::Point -{ - return getCenterPointsSpline(lanelet_id)->getPoint(s); -} - auto HdMapUtils::getTrafficLightIds() const -> lanelet::Ids { using namespace lanelet::utils::query;