File tree 1 file changed +3
-2
lines changed
perception/autoware_detected_object_validation/src/lanelet_filter
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -257,12 +257,13 @@ std::vector<BoxAndLanelet> ObjectLaneletFilterNode::getIntersectedLanelets(
257
257
258
258
const lanelet::Lanelets candidate_lanelets = lanelet_map_ptr_->laneletLayer .search (bbox2d);
259
259
for (const auto & lanelet : candidate_lanelets) {
260
- // only check the road lanelets and road shoulder lanelets
260
+ // check the road lanelets, road shoulder lanelets and crosswalks lanelets
261
261
if (
262
262
lanelet.hasAttribute (lanelet::AttributeName::Subtype) &&
263
263
(lanelet.attribute (lanelet::AttributeName::Subtype).value () ==
264
264
lanelet::AttributeValueString::Road ||
265
- lanelet.attribute (lanelet::AttributeName::Subtype).value () == " road_shoulder" )) {
265
+ lanelet.attribute (lanelet::AttributeName::Subtype).value () == " road_shoulder" ||
266
+ lanelet.attribute (lanelet::AttributeName::Subtype).value () == " crosswalk" )) {
266
267
if (bg::intersects (convex_hull, lanelet.polygon2d ().basicPolygon ())) {
267
268
// create bbox using boost for making the R-tree in later phase
268
269
lanelet::BoundingBox2d lanelet_bbox = lanelet::geometry::boundingBox2d (lanelet);
You can’t perform that action at this time.
0 commit comments