Skip to content

Commit

Permalink
removed reference from trivial variable
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed May 8, 2024
1 parent 79a4c74 commit 632e8ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions planning/behavior_path_lane_change_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ TurnSignalInfo NormalLaneChange::get_current_turn_signal_info()
const auto original_turn_signal_info = prev_module_output_.turn_signal_info;

const auto & current_lanes = getLaneChangeStatus().current_lanes;
const auto & is_valid = getLaneChangeStatus().is_valid_path;
const auto is_valid = getLaneChangeStatus().is_valid_path;
const auto & lane_change_path = getLaneChangeStatus().lane_change_path;
const auto & lane_change_param = getLaneChangeParam();

Expand All @@ -168,22 +168,22 @@ TurnSignalInfo NormalLaneChange::get_current_turn_signal_info()
return current_turn_signal_info;
}

const auto & min_length_for_turn_signal_activation =
const auto min_length_for_turn_signal_activation =
lane_change_param.min_length_for_turn_signal_activation;
const auto & route_handler = getRouteHandler();
const auto & common_parameter = getCommonParam();
const auto shift_intervals =
route_handler->getLateralIntervalsToPreferredLane(current_lanes.back());
const double next_lane_change_buffer =
utils::lane_change::calcMinimumLaneChangeLength(lane_change_param, shift_intervals);
const double & nearest_dist_threshold = common_parameter.ego_nearest_dist_threshold;
const double & nearest_yaw_threshold = common_parameter.ego_nearest_yaw_threshold;
const double & base_to_front = common_parameter.base_link2front;
const double nearest_dist_threshold = common_parameter.ego_nearest_dist_threshold;
const double nearest_yaw_threshold = common_parameter.ego_nearest_yaw_threshold;
const double base_to_front = common_parameter.base_link2front;

const double buffer =
next_lane_change_buffer + min_length_for_turn_signal_activation + base_to_front;
const double path_length = motion_utils::calcArcLength(path.points);
const size_t & current_nearest_seg_idx =
const size_t current_nearest_seg_idx =
motion_utils::findFirstNearestSegmentIndexWithSoftConstraints(
path.points, current_pose, nearest_dist_threshold, nearest_yaw_threshold);
const double dist_to_terminal = utils::getDistanceToEndOfLane(current_pose, current_lanes);
Expand Down

0 comments on commit 632e8ac

Please sign in to comment.