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(emergency_handler): fix hazard status timeout #6399

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

veqcc
Copy link
Contributor

@veqcc veqcc commented Feb 14, 2024

Description

Fixed how to handle hazard_status timeout in emergency_handler.
Previously, when hazard_status timeout is detected, onTimer callback just changes the mrm_state and publish some commands. However, this is not enough for an MRM operation since no MRM behavior is requested.
This Pull Request solved the problem.

Tests performed

Confirmed Planning Simulation works well

Effects on system behavior

When hazard_status topic timeouts, MRM emergency stop will be operated.

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.

@veqcc veqcc added the component:system System design and integration. (auto-assigned) label Feb 14, 2024
@veqcc veqcc self-assigned this Feb 14, 2024
@veqcc veqcc requested a review from mkuri as a code owner February 14, 2024 02:52
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

@veqcc veqcc requested a review from TetsuKawa as a code owner March 8, 2024 00:22
@veqcc veqcc added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 8, 2024
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

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

Project coverage is 14.79%. Comparing base (edc6ef0) to head (90a1a5b).
Report is 1 commits behind head on main.

Files Patch % Lines
...r/src/emergency_handler/emergency_handler_core.cpp 0.00% 14 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6399   +/-   ##
=======================================
  Coverage   14.79%   14.79%           
=======================================
  Files        1917     1917           
  Lines      132157   132137   -20     
  Branches    39272    39258   -14     
=======================================
- Hits        19553    19552    -1     
+ Misses      90783    90767   -16     
+ Partials    21821    21818    -3     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.79% <ø> (+<0.01%) ⬆️ Carriedforward from edc6ef0

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

@veqcc veqcc merged commit c96a7f1 into autowarefoundation:main Mar 8, 2024
32 of 33 checks passed
@veqcc veqcc deleted the bugfix_hazard_status_timeout branch March 8, 2024 00:36
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
* fix(emergency_handler): fix hazard status timeout

Signed-off-by: veqcc <[email protected]>
Signed-off-by: Kotaro Yoshimoto <[email protected]>
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
…#6399)

* fix(emergency_handler): fix hazard status timeout

Signed-off-by: veqcc <[email protected]>
Signed-off-by: kaigohirao <[email protected]>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…#6399)

* fix(emergency_handler): fix hazard status timeout

Signed-off-by: veqcc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned) tag: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