feat(map_based_predictor): add path cut for road border - #3181
Conversation
|
@ohtt Thank you for contributing to TIER IV E2E branch! Edit the checklist below and check the boxes as you complete the items. Things to check before mergingPlease check the following points before merging:
After mergingPlease check the following points after merging:
|
…destrian_path_with_road_border
…ad_border' of github.com:tier4/autoware_universe into feature/map_based_predictor_cut_pedestrian_path_with_road_border
| collect_crosswalk_polygons(*lanelet_map_ptr_, search_box, crosswalk_corridor_extend_margin); | ||
|
|
||
| const std::vector<autoware_utils_geometry::LineString2d> candidates_removed_crosswalk_area = | ||
| remove_lines_overlapping_polygons(candidates, crosswalk_corridors); |
There was a problem hiding this comment.
L218-229までの処理が基本的にすべての歩行者・自転車に対して実行されると思うのですが、処理時間が気になるところです。これらの処理は一度実行してすべての物体に対して結果を使いまわすこともできる用に思っていますが、そのように実装することは難しいですか?
map based predictionの処理内容も増えてきたので実行時間についてはARTで定期的に確認をお願いいたします。
There was a problem hiding this comment.
地図が大規模になってきたときに、lanelet_map_ptr_などを用いた探索で処理時間が爆発しないかが懸念です。
There was a problem hiding this comment.
先にCutされたLineStringを準備しておく手法も考えたのですが、そうすると
collect_candidate_road_border_linestringsの中のroad_border_layer.lineStringLayer.search(search_box);が使えなくなる、(R-treeを使った高速APIが使えなくなる)ので現状の実装にしていました。
編集済みのcandidates_removed_crosswalk_areaを持つlanelet::LaneletMapがを新たに生成できればいいのですが、それが可能かどうかは調査が必要なので調査します。
There was a problem hiding this comment.
ちなみに私のPC上での実測は
candidates=0で3µs
candidates>0で14µs
ほどでした
There was a problem hiding this comment.
別のRtreeを初回に一度だけ作る実装に変更しました。
変更後は
candidates=0で0.41µs
candidates>0で0.73µs
4091852 to
2ae5415
Compare
2ae5415 to
284449f
Compare
…destrian_path_with_road_border
…ad_border' of github.com:tier4/autoware_universe into feature/map_based_predictor_cut_pedestrian_path_with_road_border
|
60a7353 to
84845bd
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
satoshi-ota
left a comment
There was a problem hiding this comment.
一部追加で対応が必要なシーンが見つかりましたので、その実装を私の方で進めます。



Summury
VRU(歩行者・自転車)の予測経路に対し、地図上の境界を考慮した経路カットを追加。
predictor_vru に2つのサブモジュールを新規追加。いずれも経路中心線ではなくオブジェクトのフットプリントで交差を判定する。
test
Road border オレンジの境界線

Gurad rail 水色の境界線

Must pass
https://evaluation.ci.tier4.jp/evaluation/reports/e06f3618-e851-5776-9e39-f561a21e6820?project_id=x2_dev