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): secure lateral distance for path planning with corresponding to the centrifugal force #5196

Conversation

yuki-takagi-66
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 commented Oct 2, 2023

Description

goal_planner module secure lateral distance for its path planning with corresponding to the centrifugal force

Tests performed

Psim test was performed as figures bellow.
Raw values in the new functions seems to appropriate.

Screencast from 10-03-2023 02:47:20 PM.webm
goal_backward

Effects on system behavior

The approaching paths become to secure lateral distance.

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.

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.

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

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
…module" can handle the ego_polygons

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
fix the handling miss of sign of value

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Oct 2, 2023
@yuki-takagi-66 yuki-takagi-66 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 3, 2023
@yuki-takagi-66 yuki-takagi-66 changed the title Feat/takagi goal planner/check collision with extra margin rebase1 feat(goal_planner): secure lateral distance for path planning with corresponding to the centrifugal force Oct 3, 2023
@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

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

Comparison is base (93b6118) 14.77% compared to head (36425ac) 14.80%.
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5196      +/-   ##
==========================================
+ Coverage   14.77%   14.80%   +0.02%     
==========================================
  Files        1636     1636              
  Lines      113635   114884    +1249     
  Branches    34932    35830     +898     
==========================================
+ Hits        16793    17005     +212     
- Misses      78001    78868     +867     
- Partials    18841    19011     +170     
Flag Coverage Δ *Carryforward flag
differential 12.52% <0.00%> (?)
total 14.78% <ø> (+<0.01%) ⬆️ Carriedforward from 7987052

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

Files Coverage Δ
.../scene_module/goal_planner/goal_planner_module.hpp 0.00% <ø> (ø)
...em_monitor/src/process_monitor/process_monitor.cpp 0.00% <ø> (ø)
...ner/src/utils/path_safety_checker/safety_check.cpp 21.89% <0.00%> (-1.83%) ⬇️
.../scene_module/goal_planner/goal_planner_module.cpp 5.61% <0.00%> (-0.10%) ⬇️

... and 2 files with indirect coverage changes

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

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.

thanks!! LGTM

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
@yuki-takagi-66
Copy link
Contributor Author

Thank you Takeuchi-san.
I have incorporated your comments.

@yuki-takagi-66 yuki-takagi-66 merged commit 9aa2e5a into autowarefoundation:main Oct 3, 2023
@yuki-takagi-66 yuki-takagi-66 deleted the feat/takagi-goal-planner/checkCollisionWithExtraMargin_rebase1 branch October 3, 2023 08:56
Comment on lines +1316 to +1324
const auto ego_polygons_expanded =
utils::path_safety_checker::generatePolygonsWithStoppingAndInertialMargin(
path, base_link2front, base_link2rear, vehicle_width, parameters_->maximum_deceleration,
parameters_->object_recognition_collision_check_max_extra_stopping_margin);
debug_data_.ego_polygons_expanded = ego_polygons_expanded;

return utils::path_safety_checker::checkCollisionWithMargin(
ego_polygons_expanded, pull_over_lane_stop_objects,
parameters_->object_recognition_collision_check_margin);
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed the size of polygon visualized and used for the collision check is different.

kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Oct 3, 2023
…rresponding to the centrifugal force (autowarefoundation#5196)

* add feature to plan the path with considering latral overshoot

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

* separate a function in "safety_check" in order to that "goal_planner_module" can handle the ego_polygons

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

* add visualization codes
fix the handling miss of sign of value

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

* refactor codes based on comments in the PR

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

---------

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants