Closed mkquda closed 1 month ago
Thank you for contributing to the Autoware project!
🚧 If your pull request is in progress, switch it to draft mode.
Please ensure:
Attention: Patch coverage is 0.48309%
with 206 lines
in your changes missing coverage. Please review.
Project coverage is 28.45%. Comparing base (
d25e9a1
) to head (e89ef23
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
The function
getLaneChangePaths
in LC module is the main part of LC code and is responsible for sampling different candidate paths and verifying the validity and safety of the candidate path. However the function is very big and complex, which makes it difficult to understand and modify.This PR aims to refactor the
getLaneChangePaths
function to improve code readability and granularity and reduce its complexity.Changes
PhaseMetrics
to group relevant measurements (duration, length, velocity, lon. acc, lat. acc) for LC phasescalc_prepare_phase_metrics
to compute and return a list of sampled prepare phase metricscalc_shift_phase_metrics
to compute and return a list of sampled lane changing phase metricsgetCandidatePath
to process LC info and construct the cadidate pathcheckCandidatePathSafety
to verify LC candidate pathFlowchart of getLaneChangePaths function after refactoring
Related links
None.
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.