feat(run_out): speed up run out response #1163
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR changes some default parameters for the run out module to make it more responsive.
Details on changed params:
time_threshold : This parameter makes it so the run_out module does NOT issue a stop wall unless it detects a collision with a pedestrian/bicycle for more than time_threshold seconds, currently this parameter is set to 0.5 seconds, which is too long in my opinion, I would like to reduce this value to 0.15 seconds (I would also like to know how the ego behaves if this feature is disabled by setting the ignore_momentary_detection.enable parameter to false). I believe the reason for increasing the value in the first case was to reduce the occurrence of unwanted run out activation, but I believe the module has improved enough for this parameter to be returned to 0.15 seconds (or maybe disable the feature altogether).
max_prediction_time: This parameter sets the time horizon for pedestrian path prediction. Currently it is set at 3 seconds which I believe its low, specially for pedestrians near the ego vehicle. I believe this parameter should be tuned to around ~7 seconds, but I would like the XX1 team support.
keep_stop_point_time: Increased to 2 seconds to maintain the run out stop wall a little longer.
Tests performed
PSim
example
cap-.2024-09-11-15-17-40.mp4
Degradation tests:
TIER IV INTERNAL LINK
Not applicable.
Effects on system behavior
Not applicable.
Interface changes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.