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(behavior_path_planner): safety check against dynamic objects after approval in manual mode #4927

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Sep 8, 2023

Description

In goal_planner module,
After approval from request cooperate commnad is sent, it was not possible to check safety against dynamic objects.

Flow is below
image

I added a feature to safety check after approval and if feasible stop can be achieved, vehicle will stop as shown below.

Screencast.from.2023.09.08.15.24.23.webm

Tests performed

Interface changes

None

Effects on system behavior

WIP

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: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Sep 8, 2023
@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 8, 2023
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 19.04% and project coverage change: +0.13% 🎉

Comparison is base (82006db) 15.80% compared to head (48c130d) 15.94%.
Report is 3 commits behind head on main.

❗ Current head 48c130d differs from pull request most recent head afcd9a7. Consider uploading reports for the commit afcd9a7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4927      +/-   ##
==========================================
+ Coverage   15.80%   15.94%   +0.13%     
==========================================
  Files        1580     1580              
  Lines      109179   108994     -185     
  Branches    33646    33611      -35     
==========================================
+ Hits        17258    17376     +118     
+ Misses      73313    73023     -290     
+ Partials    18608    18595      -13     
Flag Coverage Δ *Carryforward flag
differential 17.75% <19.04%> (?)
total 15.92% <ø> (+0.11%) ⬆️ Carriedforward from 5eda95a

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

Files Changed Coverage Δ
.../scene_module/goal_planner/goal_planner_module.hpp 13.33% <ø> (ø)
...optimizer/src/static_centerline_optimizer_node.cpp 15.76% <ø> (ø)
.../scene_module/goal_planner/goal_planner_module.cpp 8.56% <19.04%> (+0.95%) ⬆️

... and 31 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.

for auto-approval mode the following is need?

bool GoalPlannerModule::isExecutionReady() const
{
  if(isActivated() && status_.is_safe_dynamic_obejcts){
    // some processing?
    return true;
  }

image

*
* @param output BehaviorModuleOutput
*/
void setStopPathInCurrentPath(BehaviorModuleOutput & output);
Copy link
Contributor

Choose a reason for hiding this comment

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

not In?

Copy link
Contributor

Choose a reason for hiding this comment

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

and this function does not change the current path.
just change output and status_.prev_stop_path_after_approval.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my understanding, both @param [in] and @param is acceptable, but not so sure....

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry, talked about the function name setStopPathInCurrentPath

Copy link
Contributor

Choose a reason for hiding this comment

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

From?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed in c288508

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara force-pushed the feature/stop_after_approval branch from 0560fd2 to 22e940b Compare September 8, 2023 16:26
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara force-pushed the feature/stop_after_approval branch from 22e940b to 938ac79 Compare September 8, 2023 16:29
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara changed the title feat(behavior_path_planner): safety check against dynamic objects after approval feat(behavior_path_planner): safety check against dynamic objects after approval in manual mode Sep 9, 2023
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
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
Copy link
Contributor

#4927 (review)
this comment is not caused by this PR, so will fix in other PR

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara merged commit 7fd0706 into autowarefoundation:main Sep 12, 2023
@kyoichi-sugahara kyoichi-sugahara deleted the feature/stop_after_approval branch September 12, 2023 19:20
kyoichi-sugahara added a commit to tier4/autoware.universe that referenced this pull request Sep 12, 2023
…er approval in manual mode (autowarefoundation#4927)

* add feature of stop after approval for goal_planner

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* insert stop point after approval

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
kyoichi-sugahara added a commit to tier4/autoware.universe that referenced this pull request Sep 18, 2023
…er approval in manual mode (autowarefoundation#4927)

* add feature of stop after approval for goal_planner

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* insert stop point after approval

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 24, 2023
…er approval in manual mode (autowarefoundation#4927)

* add feature of stop after approval for goal_planner

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

* insert stop point after approval

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>

---------

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@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