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(goal_planner): update lateral_deviation_thresh from 0.3 to 0.1 #9850

Conversation

Kazunori-Nakajima
Copy link
Contributor

@Kazunori-Nakajima Kazunori-Nakajima commented Jan 8, 2025

Description

There was a lateral shift when the goal planner pathway started.
To reduce it, the value of lateral_deviation_thresh was changed from 0.3 to 0.1.

and minor refactroing by unifying similar functions

Related links

TIER IV Internal link

How was this PR tested?

Scenairo test in PSIM (I looked at the /planning/planning_evaluator/metrics/lateral_tajectory_displacement_local/max)

1._pass.mp4

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

Thank you for contributing to the Autoware project!

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

Please ensure:

@Kazunori-Nakajima Kazunori-Nakajima changed the title fix(goal_planner): Update lateral_deviation_thresh from 0.3 to 0.1 fix(goal_planner): update lateral_deviation_thresh from 0.3 to 0.1 Jan 8, 2025
@kosuke55 kosuke55 changed the title fix(goal_planner): update lateral_deviation_thresh from 0.3 to 0.1 feat(goal_planner): update lateral_deviation_thresh from 0.3 to 0.1 Jan 8, 2025
@kosuke55
Copy link
Contributor

kosuke55 commented Jan 8, 2025

@Kazunori-Nakajima
thanks! smalll refactoring please

  • hasDeviatedFromLastPreviousModulePath
  • hasDeviatedFromCurrentPreviousModulePath
    These are the same processing functions with different argument names and should be unified.
    It is not necessary to use the entire planner_data, but only the current_point.
hasDeviatedFromPath(planner_data.self_odometry->pose.pose.position, last_upstream_module_output);

hasDeviatedFromPath(planner_data.self_odometry->pose.pose.position, upstream_module_output);

And could you run evaluator?

@Kazunori-Nakajima
Copy link
Contributor Author

Kazunori-Nakajima commented Jan 10, 2025

Run evaluator test here(TIER IV Internal link)
Evaluator test have 11 FAIL, But the problem seems to be unrelated to PR.

}

bool hasDeviatedFromCurrentPreviousModulePath(
bool hasDeviatedFromPath(
Copy link
Contributor

Choose a reason for hiding this comment

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

nits:
planner_data is too heavy to copy, and this function require only
planner_data.self_odometry->pose.pose.position.
so we can use

bool hasDeviatedFromPath(Point & ego_position, 

Copy link
Contributor

Choose a reason for hiding this comment

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

Point is geometry mesgs

Copy link
Contributor Author

@Kazunori-Nakajima Kazunori-Nakajima Jan 10, 2025

Choose a reason for hiding this comment

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

Thank you very much! I see!
I fixed it.

Copy link
Contributor

@kosuke55 kosuke55 left a comment

Choose a reason for hiding this comment

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

LGTM

@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

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

Project coverage is 29.57%. Comparing base (3aa84a0) to head (1dbe87e).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
...th_goal_planner_module/src/goal_planner_module.cpp 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9850      +/-   ##
==========================================
- Coverage   29.58%   29.57%   -0.02%     
==========================================
  Files        1451     1456       +5     
  Lines      108964   109027      +63     
  Branches    42615    42617       +2     
==========================================
  Hits        32240    32240              
- Misses      73626    73689      +63     
  Partials     3098     3098              
Flag Coverage Δ *Carryforward flag
differential 0.51% <0.00%> (?)
total 29.59% <ø> (+<0.01%) ⬆️ Carriedforward from 3aa84a0

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

@kosuke55 kosuke55 merged commit 594c099 into autowarefoundation:main Jan 10, 2025
45 of 46 checks passed
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants