-
Notifications
You must be signed in to change notification settings - Fork 683
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(autoware_behavior_velocity_stop_line_module): refactor and test #9424
refactor(autoware_behavior_velocity_stop_line_module): refactor and test #9424
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
...ng/behavior_velocity_planner/autoware_behavior_velocity_stop_line_module/test/test_scene.cpp
Outdated
Show resolved
Hide resolved
|
||
break; | ||
} | ||
std::pair<double, std::optional<double>> StopLineModule::getEgoAndStopPoint( |
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.
Please write doxygen.
|
||
private: | ||
std::shared_ptr<const rclcpp::Time> stopped_time_; | ||
void updateStateAndStoppedTime( |
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.
Please write doxygen.
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.
Looks good.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9424 +/- ##
==========================================
+ Coverage 29.47% 29.50% +0.03%
==========================================
Files 1440 1446 +6
Lines 108556 108569 +13
Branches 41499 41476 -23
==========================================
+ Hits 32001 32038 +37
+ Misses 73443 73411 -32
- Partials 3112 3120 +8
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
common/autoware_test_utils/config/test_behavior_velocity_planner.param.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
edd0697
to
a868a23
Compare
Description
Refactor
Remove
createDebugMarkerArray
FunctionI have removed the
createDebugMarkerArray
function in this PR. I think this function is no longer used and when I test this function, it throws anstd::out_of_range
exception.Prevented transition from
START
state toAPPROACH
stateSee this conversation.
Refactor
modifyPathVelocity
Refactoring
modifyPathVelocity
eliminates complexity and makes it unit-testable.Test
Coverage is low, but tests what should be essentially tested (speed modification and state transitions).
Related links
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.