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(lane_change): set initail rtc state properly #8902

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

go-sakayori
Copy link
Contributor

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

Description

The following WARNING appears when the lane change module `plan()' function is called at it's first time.

[WARN] [1726626143.864958038] [planning.scenario_planning.lane_driving.behavior_planning.behavior_path_planner.RTCInterface[lane_change_right]]: [isForceActivated] uuid : cad0dcbfaf3c176c142900e225f85ae5 is not found
[WARN] [1726626143.864981280] [planning.scenario_planning.lane_driving.behavior_planning.behavior_path_planner.RTCInterface[lane_change_right]]: [updateCooperateStatus]  Cannot register RUNNING as initial state

This PR solves the warnings by checking whether the uuid is registered or not.
If the uuid is not registered the cooperateStatus state is set to WAITING_FOR_EXECUTION and the force activation is not checked.

Related links

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

Thank you for contributing to the Autoware project!

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

Please ensure:

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 19, 2024
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

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

Project coverage is 27.99%. Comparing base (28a389b) to head (e992040).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
...behavior_path_lane_change_module/src/interface.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8902      +/-   ##
==========================================
- Coverage   28.00%   27.99%   -0.01%     
==========================================
  Files        1319     1320       +1     
  Lines       98699    98730      +31     
  Branches    39787    39789       +2     
==========================================
+ Hits        27641    27643       +2     
- Misses      70989    71017      +28     
- Partials       69       70       +1     
Flag Coverage Δ *Carryforward flag
differential 15.59% <0.00%> (?)
total 28.00% <ø> (+<0.01%) ⬆️ Carriedforward from 28a389b

*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 merged commit 2a2d037 into autowarefoundation:main Sep 19, 2024
45 of 46 checks passed
@go-sakayori go-sakayori deleted the fix/lc_rtc_initial branch September 19, 2024 09:46
go-sakayori added a commit to tier4/autoware.universe that referenced this pull request Sep 19, 2024
rej55 added a commit to tier4/autoware.universe that referenced this pull request Sep 20, 2024
fix(lane_change): set initial rtc state properly (autowarefoundation#8902)
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) 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