-
Notifications
You must be signed in to change notification settings - Fork 122
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 lanechange start_llt_id picking logic #2397
Conversation
...ontrolled_intersection_tactical_plugin/src/light_controlled_intersection_tactical_plugin.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but just noticed that the 'CI: Run tests' workflow is failing due to the cpplint checks on motion_computation
after PR #2399. My guess is that these edits might have been done in an editor without settings for removing whitespace, etc. in VS Code. Would you mind taking a look and we can address it in a separate PR?
Looks good to me as well. Linking the error log from the cpplint tests here for tracking https://github.com/usdot-fhwa-stol/carma-platform/actions/runs/9449278789/job/26037602316?pr=2397#step:13:23837 |
Code coverage says less than 80%, let me try to increase those |
@JonSmet Is this okay to merge with the above sonarcloud status?
|
I'm okay with this code duplication since it is a very small code block. Additionally, the unit test coverage is failing our target (80%) because of a temporarily disabled unit test in |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the mention of the temporarily disabled light_controlled_intersection_tactical_plugin unit test, there is a similar disabled test for lci_strategic_plugin. These unit test fixes are being captured in a separate effort, and will improve the test coverage for these code changes.
PR Details
Description
Main change is the plan_delegator is not filtering lanelet on shortest path when determining previous lanelet for cooperative lanechange maneuver. This makes the tactical plugin not able to generate trajectory because it may pick a lanelet that doesn't have adjacent lanelet for example in an intersection. Therefore, it needs to pick a lanelet on the actual shortest path.
Also since filtering a lanelet that's on the shortest path functionality is often repeated and needed, I refactored it out to carma_wm.
Related GitHub Issue
resolves: #2391
Related Jira Key
https://usdot-carma.atlassian.net/browse/CAR-6050
Motivation and Context
Discovered during unsignalized workzone demo for 06/11/2024. Please see the issue.
How Has This Been Tested?
Tested on passenger vehicles on TFHRC with testing environment enabled for unsignalized workzone. checked out from carma-system-4.5.0
Types of changes
Checklist: