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(AEB): implement parameterized prediction time horizon and interval #5413

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

1222-takeshi
Copy link
Contributor

@1222-takeshi 1222-takeshi commented Oct 26, 2023

Description

Introduced parameters for controlling the prediction time horizon and interval for both IMU and MPC-based predictions in Autonomous Emergency Braking (AEB). This enhancement allows for optimized processing by enabling the configuration of the prediction span, thereby improving system performance and usability.
Additionally, introduced a parameter to toggle the publishing of debug pointcloud.

Related links

TIER IV INTERNAL LINK
tier4#966
launcher PR

Tests performed

see debug polygon
before
Screenshot from 2023-10-25 16-42-54

after
image

Notes for reviewers

Interface changes

Effects on system behavior

Before, the whole predicted trajectory was used for collision prediction. Now, to save computing effort, only selected parts of the trajectory can be used. This is done by cutting the trajectory to a specific interval, making collision prediction faster while keeping it accurate.
Due to this change, some parameters may need adjustment to keep the system working properly.

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.

Signed-off-by: 1222-takeshi <m.takeshi1995@gmail.com>
@tkimura4
Copy link
Contributor

@1222-takeshi
Could you write parameter descriptions to Readme.md?

Signed-off-by: 1222-takeshi <m.takeshi1995@gmail.com>
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Oct 26, 2023
@1222-takeshi
Copy link
Contributor Author

@tkimura4
I updated README.md 🙏

@tkimura4 tkimura4 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 26, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

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

Comparison is base (db27686) 14.80% compared to head (d3cb520) 14.80%.
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5413      +/-   ##
==========================================
- Coverage   14.80%   14.80%   -0.01%     
==========================================
  Files        1661     1661              
  Lines      115448   115453       +5     
  Branches    35642    35642              
==========================================
  Hits        17093    17093              
- Misses      79109    79114       +5     
  Partials    19246    19246              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.80% <ø> (+<0.01%) ⬆️ Carriedforward from db27686

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

Files Coverage Δ
...king/include/autonomous_emergency_braking/node.hpp 0.00% <ø> (ø)
control/autonomous_emergency_braking/src/node.cpp 0.00% <0.00%> (ø)

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

@tkimura4 tkimura4 enabled auto-merge (squash) October 26, 2023 09:31
@tkimura4 tkimura4 merged commit 45792df into autowarefoundation:main Oct 26, 2023
@1222-takeshi 1222-takeshi deleted the feat/add-debug-option branch October 26, 2023 09:40

if (i * mpc_prediction_time_interval_ > mpc_prediction_time_horizon_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@1222-takeshi Since mpc_prediction_time_interval_ is defined in the MPC, it should be calculated from predicted_trajectory itself.

danielsanchezaran pushed a commit to tier4/autoware.universe that referenced this pull request Apr 15, 2024
…al (autowarefoundation#5413)

* feat(AEB): implement parameterized prediction time horizon and interval

Signed-off-by: 1222-takeshi <m.takeshi1995@gmail.com>

* chore: update readme

Signed-off-by: 1222-takeshi <m.takeshi1995@gmail.com>

* style(pre-commit): autofix

---------

Signed-off-by: 1222-takeshi <m.takeshi1995@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (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