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

refactor(autoware_autonomous_emergency_braking): update longitudinal offset parameter name #9463

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Nov 25, 2024

Description

This minor refactor PR includes

  • Parameter rename: longitudinal_offset to longitudinal_offset_margin
  • Added new parameter limit_imu_path_length
  • Constants reorganization:
    • Renamed min_moving_velocity_th to MIN_MOVING_VELOCITY_THRESHOLD and moved to namespace
    • Moved color definitions to namespace (IMU_PATH_COLOR, MPC_PATH_COLOR)
  • Variable name improvement: base_to_front_offset to base_link_to_front_offset
  • IMU path generation logic modifications:
    • Changed low-speed path generation conditions
    • Made path length limitation configurable via parameter

This PR should be merged with the PR

Related links

Parent Issue:

  • Link

How was this PR tested?

run planning_simulator

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

…offset parameter name

Update the parameter name for the longitudinal offset distance used for collision check in the autonomous emergency braking control module. The parameter name has been changed from "longitudinal_offset" to "longitudinal_offset_margin" to better reflect its purpose.

Refactor the code to use the new parameter name consistently throughout the module. This includes updating the README.md file, the configuration file, the node.hpp file, and the node.cpp file.

This change ensures that the parameter name accurately represents its functionality and improves code readability.

Signed-off-by: kyoichi-sugahara <[email protected]>
@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:control Vehicle control algorithms and mechanisms. (auto-assigned) labels Nov 25, 2024
Copy link

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Copy link
Contributor

@danielsanchezaran danielsanchezaran left a comment

Choose a reason for hiding this comment

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

LGTM

@kyoichi-sugahara kyoichi-sugahara added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 26, 2024
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 53.84615% with 6 lines in your changes missing coverage. Please review.

Project coverage is 29.08%. Comparing base (9769a9e) to head (0917045).
Report is 50 commits behind head on main.

Files with missing lines Patch % Lines
...autoware_autonomous_emergency_braking/src/node.cpp 53.84% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9463      +/-   ##
==========================================
- Coverage   29.08%   29.08%   -0.01%     
==========================================
  Files        1438     1439       +1     
  Lines      108433   108462      +29     
  Branches    41511    41515       +4     
==========================================
+ Hits        31535    31541       +6     
- Misses      73845    73869      +24     
+ Partials     3053     3052       -1     
Flag Coverage Δ *Carryforward flag
differential 7.47% <53.84%> (?)
total 29.08% <ø> (-0.01%) ⬇️ Carriedforward from 9769a9e

*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.

@kyoichi-sugahara kyoichi-sugahara merged commit 659b6b3 into autowarefoundation:main Nov 28, 2024
46 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the refactor/aeb/minor_refactoring branch November 28, 2024 06:33
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) tag: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.

2 participants