From ad79c78e2d56e40f755d79d8d92c44efee4f59ca Mon Sep 17 00:00:00 2001 From: Zulfaqar Azmi Date: Thu, 7 Nov 2024 12:02:30 +0900 Subject: [PATCH] change variable name Signed-off-by: Zulfaqar Azmi --- .../include/behavior_path_lane_change_module/utils/path.hpp | 2 +- planning/behavior_path_lane_change_module/src/scene.cpp | 2 +- planning/behavior_path_lane_change_module/src/utils/utils.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/utils/path.hpp b/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/utils/path.hpp index f4fd6d4816413..913077eac0413 100644 --- a/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/utils/path.hpp +++ b/planning/behavior_path_lane_change_module/include/behavior_path_lane_change_module/utils/path.hpp @@ -43,7 +43,7 @@ struct LaneChangeStatus LaneChangePath lane_change_path{}; lanelet::ConstLanelets current_lanes{}; lanelet::ConstLanelets target_lanes{}; - lanelet::ConstLanelet current_lane{}; + lanelet::ConstLanelet ego_lane{}; std::vector lane_follow_lane_ids{}; std::vector lane_change_lane_ids{}; bool is_safe{false}; diff --git a/planning/behavior_path_lane_change_module/src/scene.cpp b/planning/behavior_path_lane_change_module/src/scene.cpp index 700929b3933c7..69c4a939767bb 100644 --- a/planning/behavior_path_lane_change_module/src/scene.cpp +++ b/planning/behavior_path_lane_change_module/src/scene.cpp @@ -64,7 +64,7 @@ void NormalLaneChange::updateLaneChangeStatus() RCLCPP_DEBUG(logger_, "ego's current lane not in route"); return; } - status_.current_lane = current_lane; + status_.ego_lane = current_lane; const auto ego_footprint = utils::lane_change::getEgoCurrentFootprint(getEgoPose(), getCommonParam().vehicle_info); diff --git a/planning/behavior_path_lane_change_module/src/utils/utils.cpp b/planning/behavior_path_lane_change_module/src/utils/utils.cpp index 04e2c98815eba..56cb451ce8f14 100644 --- a/planning/behavior_path_lane_change_module/src/utils/utils.cpp +++ b/planning/behavior_path_lane_change_module/src/utils/utils.cpp @@ -1347,7 +1347,7 @@ bool has_overtaking_turn_lane_object( } const auto & target_lanes = status.target_lanes; - const auto & ego_current_lane = status.current_lane; + const auto & ego_current_lane = status.ego_lane; const auto target_lane_poly = lanelet::utils::combineLaneletsShape(target_lanes).polygon2d().basicPolygon();