forked from autowarefoundation/autoware_launch
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(behavior_velocity_planner): add out of lane module (#269)
* Add initial param file for new out_of_lane module Signed-off-by: Maxime CLEMENT <[email protected]> * Add params for extending the ego footprint Signed-off-by: Maxime CLEMENT <[email protected]> * Add more parameters Signed-off-by: Maxime CLEMENT <[email protected]> * add a few more params Signed-off-by: Maxime CLEMENT <[email protected]> * Add/rename parameters for new version with 3 methods (thr, inter, ttc) Signed-off-by: Maxime CLEMENT <[email protected]> * Add parameters for "skip_if_*", "strict", and "use_predicted_path" Signed-off-by: Maxime CLEMENT <[email protected]> * Update default parameters Signed-off-by: Maxime CLEMENT <[email protected]> * style(pre-commit): autofix * Fix typo Signed-off-by: Maxime CLEMENT <[email protected]> * Change param ego.extra_front_offset 1.0 -> 0.0 Signed-off-by: Maxime CLEMENT <[email protected]> * Update rviz config with "out_of_lane" virtual wall and debug markers Signed-off-by: Maxime CLEMENT <[email protected]> --------- Signed-off-by: Maxime CLEMENT <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ea7cb4e
commit 2a9ef1c
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
..._planning/lane_driving/behavior_planning/behavior_velocity_planner/out_of_lane.param.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/**: | ||
ros__parameters: | ||
out_of_lane: # module to stop or slowdown before overlapping another lane with other objects | ||
mode: ttc # mode used to consider a conflict with an object. "threshold", "intervals", or "ttc" | ||
skip_if_already_overlapping: true # do not run this module when ego already overlaps another lane | ||
|
||
threshold: | ||
time_threshold: 5.0 # [s] consider objects that will reach an overlap within this time | ||
intervals: # consider objects if their estimated time interval spent on the overlap intersect the estimated time interval of ego | ||
ego_time_buffer: 0.5 # [s] extend the ego time interval by this buffer | ||
objects_time_buffer: 0.5 # [s] extend the time intervals of objects by this buffer | ||
ttc: | ||
threshold: 3.0 # [s] consider objects with an estimated time to collision bellow this value while on the overlap | ||
|
||
objects: | ||
minimum_velocity: 0.5 # [m/s] objects lower than this velocity will be ignored | ||
use_predicted_paths: true # if true, use the predicted paths to estimate future positions. | ||
# if false, assume the object moves at constant velocity along *all* lanelets it currently is located in. | ||
|
||
overlap: | ||
minimum_distance: 0.0 # [m] minimum distance inside a lanelet for an overlap to be considered | ||
extra_length: 0.0 # [m] extra arc length to add to the front and back of an overlap (used to calculate enter/exit times) | ||
|
||
action: # action to insert in the path if an object causes a conflict at an overlap | ||
skip_if_over_max_decel: true # if true, do not take an action that would cause more deceleration than the maximum allowed | ||
strict: true # if true, when a decision is taken to avoid entering a lane, the stop point will make sure no lane at all is entered by ego | ||
# if false, ego stops just before entering a lane but may then be overlapping another lane. | ||
distance_buffer: 1.5 # [m] buffer distance to try to keep between the ego footprint and lane | ||
slowdown: | ||
distance_threshold: 30.0 # [m] insert a slowdown when closer than this distance from an overlap | ||
velocity: 2.0 # [m/s] slowdown velocity | ||
stop: | ||
distance_threshold: 15.0 # [m] insert a stop when closer than this distance from an overlap | ||
|
||
ego: | ||
extra_front_offset: 0.0 # [m] extra front distance | ||
extra_rear_offset: 0.0 # [m] extra rear distance | ||
extra_right_offset: 0.0 # [m] extra right distance | ||
extra_left_offset: 0.0 # [m] extra left distance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters