Skip to content

Commit

Permalink
fix(autoware_behavior_path_start_planner_module): fix cppcheck unread…
Browse files Browse the repository at this point in the history
…Variable (#9277)

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Nov 9, 2024
1 parent c64bfbf commit c1f5ff0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ bool StartPlannerModule::isPreventingRearVehicleFromPassingThrough(const Pose &
if (std::isnan(starting_pose_lateral_offset)) return false;

RCLCPP_DEBUG(getLogger(), "starting pose lateral offset: %f", starting_pose_lateral_offset);
const bool ego_is_merging_from_the_left = (starting_pose_lateral_offset > 0.0);

// Get the ego's overhang point closest to the centerline path and the gap between said point and
// the lane's border.
Expand Down Expand Up @@ -507,6 +506,7 @@ bool StartPlannerModule::isPreventingRearVehicleFromPassingThrough(const Pose &
};

geometry_msgs::msg::Pose ego_overhang_point_as_pose;
const bool ego_is_merging_from_the_left = (starting_pose_lateral_offset > 0.0);
const auto gaps_with_lane_borders_pair =
get_gap_between_ego_and_lane_border(ego_overhang_point_as_pose, ego_is_merging_from_the_left);

Expand Down

0 comments on commit c1f5ff0

Please sign in to comment.