Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(map_based_prediction): remove crossing fence path #5356

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Oct 19, 2023

Description

The change of the PR is necessary.

🤖 Generated by Copilot at 3b8af4f

This pull request enhances the map_based_prediction module by adding new functions and comments to map_based_prediction_node.cpp and map_based_prediction_node.hpp. The new functions filter out predicted pedestrian paths that cross with fences on the lanelet map, using geometry utilities and map information. This improves the accuracy and safety of the prediction module.

If a predicted path for a pedestrian is generated that passes through a crosswalk and cross across a fence, do not output that path.
Also, I have added some minor comments and would appreciate any feedback.

Tests performed

Effects on system behavior

Not applicable.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Oct 19, 2023
@kyoichi-sugahara kyoichi-sugahara added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 19, 2023
Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You can ignore my comments if you do not like it.

predicted_objects.objects.end());
}

bool MapBasedPredictionNode::crossWithFence(const PredictedPath & predicted_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[imo] I prefer more specific function name.

Suggested change
bool MapBasedPredictionNode::crossWithFence(const PredictedPath & predicted_path)
bool MapBasedPredictionNode::doesPathCrossAnyFence(const PredictedPath & predicted_path)

Copy link
Contributor Author

@kyoichi-sugahara kyoichi-sugahara Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YoshiRi
changed in 4569b03

@kyoichi-sugahara kyoichi-sugahara added tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Oct 19, 2023
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (0d0a22c) 14.77% compared to head (3cc6015) 14.76%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5356      +/-   ##
==========================================
- Coverage   14.77%   14.76%   -0.01%     
==========================================
  Files        1662     1662              
  Lines      115385   115394       +9     
  Branches    35616    35610       -6     
==========================================
- Hits        17043    17039       -4     
- Misses      79118    79132      +14     
+ Partials    19224    19223       -1     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.76% <ø> (-0.01%) ⬇️ Carriedforward from 3b8af4f

*This pull request uses carry forward flags. Click here to find out more.

Files Coverage Δ
...map_based_prediction/map_based_prediction_node.hpp 0.00% <ø> (ø)
...based_prediction/src/map_based_prediction_node.cpp 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara merged commit a57671d into autowarefoundation:main Oct 19, 2023
21 of 26 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the feat/consider_fence_predicted_path branch October 19, 2023 14:12
kyoichi-sugahara added a commit to tier4/autoware.universe that referenced this pull request Oct 19, 2023
…ation#5356)

* remove crossing fence path

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
saka1-s added a commit to tier4/autoware.universe that referenced this pull request Oct 20, 2023
feat(map_based_prediction): remove crossing fence path (autowarefoundation#5356)
HansOersted pushed a commit to HansOersted/autoware.universe that referenced this pull request Mar 8, 2024
[universe]
33dbaa4 feat(tier4_perception_launch): make switchable detection by tracker in x2 project (autowarefoundation#964)
940fb2b Merge pull request autowarefoundation#965 from tier4/beta/v0.11.0+PR5356
5aa9db1 feat(map_based_prediction): remove crossing fence path (autowarefoundation#5356)
[common]
c3a1a19 fix(visualization): display traffic reg elem id (autowarefoundation#210)
36b3825 feat(lanelet2_extention): add getAllFences (autowarefoundation#209)
44dc388 docs(lanelet2_extension): add brief description for crosswalk traffic light (autowarefoundation#208)
c360614 feat(lanelet2_extensions): add query curbstones from vector map (autowarefoundation#206)
[launcher]
a2f88f00 feat(autoware_launch): longer prediction 15.0 -> 20.0 (autowarefoundation#482)
87974c0f fix: fix stop_duration_sec param for merge_from_private (autowarefoundation#516)
f5a1dfad fix(autoware_launch): fix parameter for light weight grand segmentation (autowarefoundation#506)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants