-
Notifications
You must be signed in to change notification settings - Fork 657
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
refactor(lane_departure_checker): move member functions to util functions #9547
base: main
Are you sure you want to change the base?
refactor(lane_departure_checker): move member functions to util functions #9547
Conversation
…ions Signed-off-by: kyoichi-sugahara <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9547 +/- ##
==========================================
- Coverage 29.51% 29.50% -0.01%
==========================================
Files 1444 1450 +6
Lines 108528 108563 +35
Branches 41404 41400 -4
==========================================
+ Hits 32032 32036 +4
- Misses 73376 73405 +29
- Partials 3120 3122 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
control/autoware_lane_departure_checker/src/lane_departure_checker_node/utils.cpp
Outdated
Show resolved
Hide resolved
for (const auto & route_lanelet : route_lanelets) { | ||
const auto poly = route_lanelet.polygon2d().basicPolygon(); | ||
if (!boost::geometry::disjoint(poly, footprint_hull)) { | ||
candidate_lanelets.push_back(route_lanelet); | ||
} | ||
} |
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.
seems like a good place to use std::copy_if
…cker_node/utils.cpp Co-authored-by: Zulfaqar Azmi <[email protected]>
control/autoware_lane_departure_checker/src/lane_departure_checker_node/utils.cpp
Outdated
Show resolved
Hide resolved
…cker_node/utils.cpp Co-authored-by: Zulfaqar Azmi <[email protected]>
Description
minor refactoring changes to improve testability and prepare the lane_departure_checker module for unit testing implementation. The changes are minimal and do not affect the core functionality.
createVehiclePassingAreas()
,getCandidateLanelets()
andcreateVehiclePassingAreas()
fromLaneDepartureChecker
class to utility functionscreateVehiclePassingAreas
Related links
Parent Issue:
How was this PR tested?
run psim
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.