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: use vehicle_stop_checker for judging vehicle stop vehicle_cmd_gate #4060

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented Jun 23, 2023

Description

For vehicles that cannot acquire the vehicle speed in the low speed range, it may be incorrectly judged to be stopped
in the vehicle_cmd_gate node.
To prevent this, we use vehicle_stop-checker for stop judgment

Related links

autowarefoundation/autoware_launch#417

Tests performed

Psim Test OK.

Notes for reviewers

Interface changes

none

Effects on system behavior

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.

@tkimura4 tkimura4 requested review from TakaHoribe and a team as code owners June 23, 2023 07:20
@tkimura4 tkimura4 marked this pull request as draft June 23, 2023 07:20
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jun 23, 2023
@tkimura4 tkimura4 requested a review from mkuri June 23, 2023 07:20
@tkimura4
Copy link
Contributor Author

If we use stop_duration common to ADAPI, I'll close this PR since we can use adapi_pause_->is_paused() instead of vehicle_stop_checker.

@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (385ef5b) 14.38% compared to head (e5a7563) 14.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4060      +/-   ##
==========================================
- Coverage   14.38%   14.38%   -0.01%     
==========================================
  Files        1563     1563              
  Lines      107446   107448       +2     
  Branches    31117    31118       +1     
==========================================
  Hits        15454    15454              
- Misses      75194    75196       +2     
  Partials    16798    16798              
Flag Coverage Δ *Carryforward flag
differential 19.33% <0.00%> (?)
total 14.38% <ø> (+<0.01%) ⬆️ Carriedforward from 385ef5b

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

Impacted Files Coverage Δ
control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp 0.29% <0.00%> (-0.01%) ⬇️
control/vehicle_cmd_gate/src/vehicle_cmd_gate.hpp 0.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@mkuri mkuri left a comment

Choose a reason for hiding this comment

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

LGTM

@mkuri
Copy link
Contributor

mkuri commented Jun 23, 2023

Before
Shock occurs due to a stop misjudgment before stop.

Screenshot from 2023-06-23 17-38-50

After
Screenshot from 2023-06-23 17-38-26

@tkimura4 tkimura4 force-pushed the feat/use_vehicle_stop_checker_in_vehicle_cmd_gate branch from d05ebb6 to c2630f0 Compare June 23, 2023 15:05
@tkimura4 tkimura4 marked this pull request as ready for review June 23, 2023 15:06
tkimura4 added 2 commits June 24, 2023 00:10
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@tkimura4 tkimura4 force-pushed the feat/use_vehicle_stop_checker_in_vehicle_cmd_gate branch from c2630f0 to e5a7563 Compare June 23, 2023 15:11
Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

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

LGTM

@tkimura4 tkimura4 merged commit d03c8af into autowarefoundation:main Jun 27, 2023
@tkimura4 tkimura4 deleted the feat/use_vehicle_stop_checker_in_vehicle_cmd_gate branch June 27, 2023 01:36
maxime-clem pushed a commit to maxime-clem/autoware.universe that referenced this pull request Jul 3, 2023
…ate (autowarefoundation#4060)

* feat: use vehicle_stop_checker for  judging vehicle stop vehicle_cmd_gate

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* remove unused include

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

---------

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
mkuri pushed a commit to tier4/autoware.universe that referenced this pull request Jul 28, 2023
…ate (autowarefoundation#4060)

* feat: use vehicle_stop_checker for  judging vehicle stop vehicle_cmd_gate

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* remove unused include

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

---------

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants