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): prediction with acc constraints #5960

Conversation

danielsanchezaran
Copy link
Contributor

@danielsanchezaran danielsanchezaran commented Dec 26, 2023

Description

Implement a lateral acceleration-based pruning mechanism to eliminate unfeasible vehicle paths. See link for more details: TIER IV INTERNAL LINK

Also, added the possibility of updating parameters in real time (only used for the parameters added by this PR).

Related links

TIER IV INTERNAL LINK

Tests performed

PSim with different vehicle speeds and Evaluator tests (I did not find degradation caused by this PR.
): TIER IV INTERNAL LINK
Example video:

The paths to turn right or left dissappear then the vehicle is close t\because it cannot realistically slow down on time to turn.

cap-.2023-12-26-10-36-47.mp4

Notes for reviewers

Requires these changes to launch: autowarefoundation/autoware_launch#759

Interface changes

Effects on system behavior

Eliminates predicted paths (for vehicles) that are unfeasible because they would generate large lateral accelerations

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 26, 2023
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Dec 26, 2023
@danielsanchezaran danielsanchezaran added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 26, 2023
@danielsanchezaran danielsanchezaran marked this pull request as ready for review December 26, 2023 08:04
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

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

Comparison is base (4016c05) 15.25% compared to head (1eae714) 15.24%.
Report is 4 commits behind head on main.

Files Patch % Lines
...map_based_prediction/map_based_prediction_node.hpp 0.00% 51 Missing ⚠️
...based_prediction/src/map_based_prediction_node.cpp 0.00% 31 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5960      +/-   ##
==========================================
- Coverage   15.25%   15.24%   -0.02%     
==========================================
  Files        1750     1750              
  Lines      120562   120642      +80     
  Branches    36735    36735              
==========================================
  Hits        18390    18390              
- Misses      81543    81623      +80     
  Partials    20629    20629              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.25% <ø> (+<0.01%) ⬆️ Carriedforward from 1f8d535

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

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

danielsanchezaran and others added 14 commits December 27, 2023 08:56
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
@danielsanchezaran danielsanchezaran force-pushed the feat/map-prediction-with-acc-constraints branch from 18f2cc8 to 1f8d535 Compare December 26, 2023 23:56
@@ -66,7 +66,7 @@ Lane change logics is illustrated in the figure below.An example of how to tune

### Tuning lane change detection logic

Currently we provide two parameters to tune lane change detection:
Currently we provide three parameters to tune lane change detection:
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

Signed-off-by: Daniel Sanchez <[email protected]>
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

LGTM!

@danielsanchezaran danielsanchezaran merged commit a04f825 into autowarefoundation:main Dec 27, 2023
27 of 33 checks passed
@danielsanchezaran danielsanchezaran deleted the feat/map-prediction-with-acc-constraints branch December 27, 2023 02:29
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
…foundation#5960)

* WIP add acc constraints to discard paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Add lat acc constraints to predicted paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Delete debug print

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* WIP

Signed-off-by: Daniel Sanchez <[email protected]>

* make lat acc calculation with yaw rate

Signed-off-by: Daniel Sanchez <[email protected]>

* eliminate debug prints

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused variable

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor rename function

Signed-off-by: Daniel Sanchez <[email protected]>

* keep a copy of the straightest path in case all paths are cleared

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor and add constraints check parameter

Signed-off-by: Daniel Sanchez <[email protected]>

* update documentation

Signed-off-by: Daniel Sanchez <[email protected]>

* add braces for readability (style guide)

Signed-off-by: Daniel Sanchez <[email protected]>

* fix review issues

Signed-off-by: Daniel Sanchez <[email protected]>

---------

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…foundation#5960)

* WIP add acc constraints to discard paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Add lat acc constraints to predicted paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Delete debug print

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* WIP

Signed-off-by: Daniel Sanchez <[email protected]>

* make lat acc calculation with yaw rate

Signed-off-by: Daniel Sanchez <[email protected]>

* eliminate debug prints

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused variable

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor rename function

Signed-off-by: Daniel Sanchez <[email protected]>

* keep a copy of the straightest path in case all paths are cleared

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor and add constraints check parameter

Signed-off-by: Daniel Sanchez <[email protected]>

* update documentation

Signed-off-by: Daniel Sanchez <[email protected]>

* add braces for readability (style guide)

Signed-off-by: Daniel Sanchez <[email protected]>

* fix review issues

Signed-off-by: Daniel Sanchez <[email protected]>

---------

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…foundation#5960)

* WIP add acc constraints to discard paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Add lat acc constraints to predicted paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Delete debug print

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* WIP

Signed-off-by: Daniel Sanchez <[email protected]>

* make lat acc calculation with yaw rate

Signed-off-by: Daniel Sanchez <[email protected]>

* eliminate debug prints

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused variable

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor rename function

Signed-off-by: Daniel Sanchez <[email protected]>

* keep a copy of the straightest path in case all paths are cleared

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor and add constraints check parameter

Signed-off-by: Daniel Sanchez <[email protected]>

* update documentation

Signed-off-by: Daniel Sanchez <[email protected]>

* add braces for readability (style guide)

Signed-off-by: Daniel Sanchez <[email protected]>

* fix review issues

Signed-off-by: Daniel Sanchez <[email protected]>

---------

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…foundation#5960)

* WIP add acc constraints to discard paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Add lat acc constraints to predicted paths

Signed-off-by: Daniel Sanchez <[email protected]>

* Delete debug print

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused var

Signed-off-by: Daniel Sanchez <[email protected]>

* WIP

Signed-off-by: Daniel Sanchez <[email protected]>

* make lat acc calculation with yaw rate

Signed-off-by: Daniel Sanchez <[email protected]>

* eliminate debug prints

Signed-off-by: Daniel Sanchez <[email protected]>

* delete unused variable

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor rename function

Signed-off-by: Daniel Sanchez <[email protected]>

* keep a copy of the straightest path in case all paths are cleared

Signed-off-by: Daniel Sanchez <[email protected]>

* refactor and add constraints check parameter

Signed-off-by: Daniel Sanchez <[email protected]>

* update documentation

Signed-off-by: Daniel Sanchez <[email protected]>

* add braces for readability (style guide)

Signed-off-by: Daniel Sanchez <[email protected]>

* fix review issues

Signed-off-by: Daniel Sanchez <[email protected]>

---------

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants