Commit c621727 1 parent b4be07e commit c621727 Copy full SHA for c621727
File tree 1 file changed +11
-0
lines changed
planning/behavior_path_planner/autoware_behavior_path_static_obstacle_avoidance_module/src
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1993,6 +1993,17 @@ lanelet::ConstLanelets getAdjacentLane(
1993
1993
lanes.push_back (opt_right_lane.value ());
1994
1994
}
1995
1995
1996
+ const auto left_opposite_lanes = rh->getLeftOppositeLanelets (lane);
1997
+ if (!is_right_shift && !left_opposite_lanes.empty ()) {
1998
+ lanes.push_back (left_opposite_lanes.front ());
1999
+
2000
+ for (const auto & prev_lane : rh->getPreviousLanelets (left_opposite_lanes.front ())) {
2001
+ if (!exist (prev_lane.id ())) {
2002
+ lanes.push_back (prev_lane);
2003
+ }
2004
+ }
2005
+ }
2006
+
1996
2007
const auto right_opposite_lanes = rh->getRightOppositeLanelets (lane);
1997
2008
if (is_right_shift && !right_opposite_lanes.empty ()) {
1998
2009
lanes.push_back (right_opposite_lanes.front ());
You can’t perform that action at this time.
0 commit comments