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(rtc_interface, lane_change): check state transition for cooperate status #8855

Merged
merged 5 commits into from
Sep 12, 2024

Conversation

go-sakayori
Copy link
Contributor

@go-sakayori go-sakayori commented Sep 12, 2024

Description

A new filed tier4_rtc_msgs/State state was introduced in the rt cooperate status previously. This field is used to observe the state transition of the rtc message. However, inappropriate state transition could be occurred since there was no limitation in the rtc interface module.

In this PR, I have checked the state transition inside the updateCooperateStatus function.
Additionally, the RTC state transition is fixed in the lane change module.
The cooperateState status would transit to failure when the module can only transit to FAILURE.
Being specific, it should not transit to FAILED inside planWaitingApproval function, although the lane change module status could be kept WAITING_APPROVAL due to canTransitFailureState function.

Related links

tier4/tier4_autoware_msgs#119
#8604

How was this PR tested?

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 Sep 12, 2024
Copy link

github-actions bot commented Sep 12, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

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

Good 👍 LGTM.

@satoshi-ota satoshi-ota added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 12, 2024
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

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

Project coverage is 27.82%. Comparing base (eaacae4) to head (58e1ae2).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...nning/autoware_rtc_interface/src/rtc_interface.cpp 66.66% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8855      +/-   ##
==========================================
- Coverage   27.82%   27.82%   -0.01%     
==========================================
  Files        1325     1329       +4     
  Lines       98809    98848      +39     
  Branches    39668    39675       +7     
==========================================
+ Hits        27495    27502       +7     
- Misses      71235    71314      +79     
+ Partials       79       32      -47     
Flag Coverage Δ *Carryforward flag
differential 24.15% <66.66%> (?)
total 27.82% <ø> (-0.01%) ⬇️ Carriedforward from aaf5f27

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

@go-sakayori go-sakayori marked this pull request as draft September 12, 2024 04:28
@go-sakayori go-sakayori changed the title feat(rtc_interface): check state transition for cooperate status feat(rtc_interface, lane_change): check state transition for cooperate status Sep 12, 2024
@go-sakayori
Copy link
Contributor Author

go-sakayori commented Sep 12, 2024

@satoshi-ota
Since I've made a minor change eba9d50 after you reviewed, can you check it once more. Thank you in advance.

Signed-off-by: Go Sakayori <gsakayori@gmail.com>
Signed-off-by: Go Sakayori <gsakayori@gmail.com>
Signed-off-by: Go Sakayori <gsakayori@gmail.com>
Signed-off-by: Go Sakayori <gsakayori@gmail.com>
Signed-off-by: Go Sakayori <gsakayori@gmail.com>
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

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

LGTM!

@go-sakayori go-sakayori merged commit 9cc5ef1 into autowarefoundation:main Sep 12, 2024
32 of 34 checks passed
@go-sakayori go-sakayori deleted the feat/rtc_state_transition branch September 12, 2024 10:19
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.

3 participants