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

fix(obstacle_cruise_planner): add separate parameters for cruise and stop margins #8166

Conversation

ahmeddesokyebrahim
Copy link
Contributor

@ahmeddesokyebrahim ahmeddesokyebrahim commented Jul 23, 2024

Description

Closes #7922

Related links

Parent Issue:

How was this PR tested?

Using scenario simulation

❗ Note ❗
In this previous scenario, the safe distance is updated to be 12.5 m following the 3-seconds inter-vehicle time-distance rule in performance requirements here

Before this PR:

2024-07-23.15-28-31.mp4

After this PR:

2024-07-23.15-02-16.mp4

Notes for reviewers

This PR depends on an autoware_launch PR

Interface changes

Topic changes

N.A

ROS Parameter Changes

Additions and removals

Change type Parameter Name Type Default Value Description
Added common.cruise_safe_distance_method double 0.5 cruise safe distance margin used by RSS equation as a small constant to avoid zero distance

Modifications

Version Parameter Name Type Default Value Description
Old common.safe_distance_method double 6.0 This is also used as a stop margin [m]
New common.stop_safe_distance_method double 6.0 stop safe distance margin used as previous safe_distance_method for stop purposes
Version Parameter Name Type Default Value Description
Old common.terminal_safe_distance_margin double 3.0 Stop margin at the goal. This value cannot exceed safe distance margin. [m]
New common.terminal_stop_safe_distance_margin double 3.0 Stop margin at the goal, used as previous terminal_safe_distance_margin

Effects on system behavior

Improving obstacle_cruise_planner behavior in cruising scenarios, mitigating any mitigate any unnecessary long safe distance ego and npc and satisfying performance requirements

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Jul 23, 2024
Copy link

github-actions bot commented Jul 23, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 35.29412% with 11 lines in your changes missing coverage. Please review.

Project coverage is 29.13%. Comparing base (2723c89) to head (61b5a05).
Report is 597 commits behind head on main.

Files with missing lines Patch % Lines
..._obstacle_cruise_planner/src/planner_interface.cpp 0.00% 7 Missing ⚠️
...utoware/obstacle_cruise_planner/common_structs.hpp 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8166      +/-   ##
==========================================
- Coverage   29.14%   29.13%   -0.01%     
==========================================
  Files        1608     1609       +1     
  Lines      118145   118172      +27     
  Branches    50862    50868       +6     
==========================================
+ Hits        34431    34435       +4     
- Misses      74490    74513      +23     
  Partials     9224     9224              
Flag Coverage Δ *Carryforward flag
differential 6.59% <35.29%> (?)
total 29.14% <ø> (-0.01%) ⬇️ Carriedforward from 2723c89

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

@ahmeddesokyebrahim
Copy link
Contributor Author

Closing this PR as the intended issue and scenario/s will be covered by this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (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.

[Dense-Urban-ODD] Improve cruise planner safe distance when cruising a front npc
2 participants