-
Notifications
You must be signed in to change notification settings - Fork 663
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
feat(avoidance): change lateral margin based on if it's parked vehicle #6520
feat(avoidance): change lateral margin based on if it's parked vehicle #6520
Conversation
f0ceab7
to
432052a
Compare
Signed-off-by: satoshi-ota <[email protected]>
Signed-off-by: satoshi-ota <[email protected]>
432052a
to
ba7b435
Compare
@satoshi-ota |
@TomohitoAndo Thanks for your question. Yes, of course. However, most of avoidance logics is NOT fixed and there is a possibility to change in near future. So, I'll update opened avoidance module docs in June. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6520 +/- ##
==========================================
- Coverage 14.78% 14.78% -0.01%
==========================================
Files 1917 1917
Lines 132038 132059 +21
Branches 39228 39242 +14
==========================================
+ Hits 19524 19526 +2
- Misses 90726 90738 +12
- Partials 21788 21795 +7
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I confirmed this works on PSim. Great! I set the parameter like following to see the change. car:
execute_num: 1 # [-]
moving_speed_threshold: 1.0 # [m/s]
moving_time_threshold: 2.0 # [s]
lateral_margin:
soft_margin: 0.1 # [m]
hard_margin: 0.1 # [m]
hard_margin_for_parked_vehicle: 0.5 # [m]
max_expand_ratio: 0.0 # [-]
envelope_buffer_margin: 0.1 # [m]
safety_buffer_longitudinal: 0.0 # [m]
use_conservative_buffer_longitudinal: true # [-] When set to true, the base_link2front is added to the longitudinal buffer before avoidance. |
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.
LGTM
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.
LGTM
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]> Signed-off-by: Kotaro Yoshimoto <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]> Signed-off-by: kaigohirao <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
autowarefoundation#6520) * feat(avoidance): check if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> * feat(avoidance): change lateral margin based on if it's parked vehicle Signed-off-by: satoshi-ota <[email protected]> --------- Signed-off-by: satoshi-ota <[email protected]>
Description
The module creates avoidance path not only for PARKED vehilce but also NON-PARKED vehicle. And, it used common lateral margin for both type of vehicle. But I think the module should be able to use different lateral margin for each types based on the assumption that the door might open and the driver might get out the car if it's a PARKED vehilce. In that case, we should set larger lateral margin for PARKED vehicle than the param for NON-PARKED vehicle.
In this PR, I rebuild lateral params and make it possible to set lateral params dependently.
For example, it's able to tune as follow. In this setting, avoidance module keeps 1.5m (0.3 + 0.5 + 0.7) for PARKED vehicle.
For PARKED vehilce. (Grid: 0.5 x 0.5m)
On the other hand, it keeps 1.0m (0.3 + 0.5 + 0.2) for NON-PARKED vehicle.
Tests performed
Effects on system behavior
Improve avoidance behaivor.
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.