@@ -1654,12 +1654,12 @@ lanelet::ConstLanelets getAdjacentLane(
1654
1654
1655
1655
lanelet::ConstLanelets lanes{};
1656
1656
for (const auto & lane : ego_succeeding_lanes) {
1657
- const auto opt_left_lane = rh->getLeftLanelet (lane);
1657
+ const auto opt_left_lane = rh->getLeftLanelet (lane, true , false );
1658
1658
if (!is_right_shift && opt_left_lane) {
1659
1659
lanes.push_back (opt_left_lane.value ());
1660
1660
}
1661
1661
1662
- const auto opt_right_lane = rh->getRightLanelet (lane);
1662
+ const auto opt_right_lane = rh->getRightLanelet (lane, true , false );
1663
1663
if (is_right_shift && opt_right_lane) {
1664
1664
lanes.push_back (opt_right_lane.value ());
1665
1665
}
@@ -1675,7 +1675,8 @@ lanelet::ConstLanelets getAdjacentLane(
1675
1675
1676
1676
std::vector<ExtendedPredictedObject> getSafetyCheckTargetObjects (
1677
1677
const AvoidancePlanningData & data, const std::shared_ptr<const PlannerData> & planner_data,
1678
- const std::shared_ptr<AvoidanceParameters> & parameters, const bool is_right_shift)
1678
+ const std::shared_ptr<AvoidanceParameters> & parameters, const bool is_right_shift,
1679
+ DebugData & debug)
1679
1680
{
1680
1681
const auto & p = parameters;
1681
1682
const auto check_right_lanes =
@@ -1733,6 +1734,9 @@ std::vector<ExtendedPredictedObject> getSafetyCheckTargetObjects(
1733
1734
utils::path_safety_checker::isCentroidWithinLanelet);
1734
1735
append (targets);
1735
1736
}
1737
+
1738
+ debug.safety_check_lanes .insert (
1739
+ debug.safety_check_lanes .end (), check_lanes.begin (), check_lanes.end ());
1736
1740
}
1737
1741
1738
1742
// check left lanes
@@ -1752,6 +1756,9 @@ std::vector<ExtendedPredictedObject> getSafetyCheckTargetObjects(
1752
1756
utils::path_safety_checker::isCentroidWithinLanelet);
1753
1757
append (targets);
1754
1758
}
1759
+
1760
+ debug.safety_check_lanes .insert (
1761
+ debug.safety_check_lanes .end (), check_lanes.begin (), check_lanes.end ());
1755
1762
}
1756
1763
1757
1764
// check current lanes
@@ -1771,6 +1778,9 @@ std::vector<ExtendedPredictedObject> getSafetyCheckTargetObjects(
1771
1778
utils::path_safety_checker::isCentroidWithinLanelet);
1772
1779
append (targets);
1773
1780
}
1781
+
1782
+ debug.safety_check_lanes .insert (
1783
+ debug.safety_check_lanes .end (), check_lanes.begin (), check_lanes.end ());
1774
1784
}
1775
1785
1776
1786
return target_objects;
0 commit comments