Skip to content

Commit

Permalink
feat: change planning parameters (autowarefoundation#453)
Browse files Browse the repository at this point in the history
* feat: add scene_module_manager setting with foa

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: disable no_topping_area

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: set proper rtc manager settings

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: enable force_avoidance_for_stopped_vehicle

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: tkimura4 <tkimura4@users.noreply.github.com>
  • Loading branch information
tkimura4 and tkimura4 authored Apr 24, 2023
1 parent a9d8e2f commit 66bc222
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
enable_avoidance_over_same_direction: true
enable_avoidance_over_opposite_direction: true
enable_update_path_when_object_is_gone: false
enable_force_avoidance_for_stopped_vehicle: false
enable_force_avoidance_for_stopped_vehicle: true
enable_safety_check: true
enable_yield_maneuver: true
disable_path_update: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# USE ONLY WHEN THE OPTION COMPILE_WITH_OLD_ARCHITECTURE IS SET TO FALSE.
# https://github.com/autowarefoundation/autoware.universe/blob/main/planning/behavior_path_planner/CMakeLists.txt
# NOTE: The smaller the priority number is, the higher the module priority is.
/**:
ros__parameters:
external_request_lane_change_left:
enable_module: true
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: true
priority: 6
max_module_size: 1

external_request_lane_change_right:
enable_module: true
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: true
priority: 6
max_module_size: 1

lane_change_left:
enable_module: true
enable_simultaneous_execution_as_approved_module: true
enable_simultaneous_execution_as_candidate_module: true
priority: 5
max_module_size: 1

lane_change_right:
enable_module: true
enable_simultaneous_execution_as_approved_module: true
enable_simultaneous_execution_as_candidate_module: true
priority: 5
max_module_size: 1

pull_out:
enable_module: true
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: false
priority: 0
max_module_size: 1

side_shift:
enable_module: true
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: false
priority: 2
max_module_size: 1

pull_over:
enable_module: true
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: false
priority: 1
max_module_size: 1

avoidance:
enable_module: true
enable_simultaneous_execution_as_approved_module: true
enable_simultaneous_execution_as_candidate_module: false
priority: 4
max_module_size: 1

# NOTE: This module is unstable. Deprecated for now.
avoidance_by_lc:
enable_module: false
enable_simultaneous_execution_as_approved_module: false
enable_simultaneous_execution_as_candidate_module: false
priority: 3
max_module_size: 1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
launch_detection_area: true
launch_virtual_traffic_light: false # disabled by default to not confuse newcomers
launch_occlusion_spot: false
launch_no_stopping_area: true
launch_no_stopping_area: false
launch_run_out: false
launch_speed_bump: false
launch_out_of_lane: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
- "crosswalk"
- "detection_area"
- "intersection"
- "no_stopping_area"
- "traffic_light"
- "external_request_lane_change_left"
- "external_request_lane_change_right"
- "lane_change_left"
- "lane_change_right"
- "avoidance_left"
Expand All @@ -21,7 +18,6 @@
- "crosswalk"
- "detection_area"
- "intersection"
- "no_stopping_area"
- "traffic_light"
- "lane_change_left"
- "lane_change_right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
- "crosswalk"
- "detection_area"
- "intersection"
- "no_stopping_area"
- "traffic_light"
- "external_request_lane_change_left"
- "external_request_lane_change_right"
- "lane_change_left"
- "lane_change_right"
- "avoidance_left"
Expand Down
17 changes: 8 additions & 9 deletions autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<arg name="traffic_light_recognition/enable_fine_detection" default="true" description="enable traffic light fine detection"/>
<!-- Planning -->
<arg name="use_experimental_lane_change_function" default="false"/>
<arg name="use_external_lane_change" default="true"/>
<!-- Others -->
<arg name="use_foa" default="false"/>

Expand All @@ -58,16 +57,16 @@
if="$(var use_foa)"
/>

<!-- behavior path planner settings (use external lane change function or not) -->
<!-- external lane change setting -->
<let
name="behavior_path_planner_tree_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/behavior_path_planner_tree.xml"
unless="$(var use_external_lane_change)"
name="scene_module_manager_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/scene_module_manager.param.yaml"
unless="$(var use_foa)"
/>
<let
name="behavior_path_planner_tree_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/behavior_path_planner_tree_with_external_request_LC.xml"
if="$(var use_external_lane_change)"
name="scene_module_manager_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/scene_module_manager_foa.param.yaml"
if="$(var use_foa)"
/>

<!-- Global parameters -->
Expand Down Expand Up @@ -127,7 +126,7 @@
<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_planning_component.launch.xml">
<arg name="use_experimental_lane_change_function" value="$(var use_experimental_lane_change_function)"/>
<arg name="rtc_auto_mode_manager_param_path" value="$(var rtc_auto_mode_manager_param_path)"/>
<arg name="behavior_path_planner_tree_param_path" value="$(var behavior_path_planner_tree_param_path)"/>
<arg name="scene_module_manager_param_path" value="$(var scene_module_manager_param_path)"/>
</include>
</group>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<!-- NOTE: optional parameters are written here -->
<!-- behavior -->
<arg name="use_experimental_lane_change_function" default="false"/>
<arg name="behavior_path_planner_tree_param_path"/>
<arg name="rtc_auto_mode_manager_param_path"/>
<arg name="scene_module_manager_param_path"/>
<!-- motion -->
<arg name="cruise_planner_type" default="obstacle_cruise_planner" description="options: obstacle_stop_planner, obstacle_cruise_planner, none"/>
<arg name="use_surround_obstacle_check" default="false"/>
Expand Down Expand Up @@ -46,10 +46,7 @@
name="drivable_area_expansion_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/drivable_area_expansion.param.yaml"
/>
<arg
name="scene_module_manager_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/scene_module_manager.param.yaml"
/>
<arg name="scene_module_manager_param_path" value="$(var scene_module_manager_param_path)"/>
<arg
name="behavior_path_planner_tree_param_path"
value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/lane_driving/behavior_planning/behavior_path_planner/behavior_path_planner_tree.xml"
Expand Down
2 changes: 0 additions & 2 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<arg name="vehicle_simulation" default="true" description="use vehicle simulation"/>
<!-- Planning -->
<arg name="use_experimental_lane_change_function" default="true"/>
<arg name="use_external_lane_change" default="false"/>
<!-- Others -->
<arg name="use_foa" default="false"/>

Expand Down Expand Up @@ -60,7 +59,6 @@
<arg name="rviz_config" value="$(var rviz_config)"/>
<!-- Planning -->
<arg name="use_experimental_lane_change_function" value="$(var use_experimental_lane_change_function)"/>
<arg name="use_external_lane_change" value="$(var use_external_lane_change)"/>
<!-- Others -->
<arg name="use_foa" value="$(var use_foa)"/>
</include>
Expand Down

0 comments on commit 66bc222

Please sign in to comment.