Skip to content

Commit

Permalink
feat(planning): add enable_all_modules_auto_mode argument to launch f… (
Browse files Browse the repository at this point in the history
autowarefoundation#577)

feat(planning): add enable_all_modules_auto_mode argument to launch files for planning modules (autowarefoundation#798)

* Add auto mode setting for all modules

Signed-off-by: kyoichi-sugahara <[email protected]>
Co-authored-by: Kyoichi Sugahara <[email protected]>
  • Loading branch information
saka1-s and kyoichi-sugahara authored Feb 16, 2024
1 parent 658d34e commit 1c8cffa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoware_launch/launch/autoware.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
<arg name="perception_mode" default="camera_lidar_radar_fusion" description="select perception mode. camera_lidar_radar_fusion, camera_lidar_fusion, lidar_radar_fusion, lidar, radar"/>
<arg name="traffic_light_recognition/enable_fine_detection" default="true" description="enable traffic light fine detection"/>
<arg name="centerpoint_model_path" default="/opt/autoware/mlmodels/centerpoint" description="path of centerpoint model file"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" default="false" description="enable all module's auto mode"/>

<!-- Global parameters -->
<group scoped="false">
Expand Down Expand Up @@ -106,6 +108,7 @@
<group if="$(var launch_planning)">
<include file="$(find-pkg-share autoware_launch)/launch/components/tier4_planning_component.launch.xml">
<arg name="module_preset" value="$(var planning_module_preset)"/>
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
</include>
</group>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<launch>
<!-- NOTE: optional parameters are written here -->
<arg name="module_preset" default="x2"/>
<arg name="enable_all_modules_auto_mode" default="false"/>
<include file="$(find-pkg-share autoware_launch)/config/planning/preset/$(var module_preset)_preset.yaml"/>

<include file="$(find-pkg-share tier4_planning_launch)/launch/planning.launch.xml">
<arg name="vehicle_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/vehicle_info.param.yaml"/>
<arg name="use_pointcloud_container" value="$(var use_pointcloud_container)"/>
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>

<!-- common -->
<arg name="common_config_path" value="$(find-pkg-share autoware_launch)/config/planning/scenario_planning/common"/>
Expand Down
4 changes: 4 additions & 0 deletions autoware_launch/launch/planning_simulator.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<let name="rviz_respawn" value="true" unless="$(var scenario_simulation)"/>
<!-- Vcu emulation -->
<arg name="vehicle_simulation" default="true" description="use vehicle simulation"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" default="$(var scenario_simulation)" description="enable all module's auto mode"/>

<group scoped="false">
<!-- Vehicle -->
Expand Down Expand Up @@ -65,6 +67,8 @@
<arg name="rviz_respawn" value="$(var rviz_respawn)"/>
<!-- V2X -->
<arg name="launch_v2x" value="false"/>
<!-- Auto mode setting-->
<arg name="enable_all_modules_auto_mode" value="$(var enable_all_modules_auto_mode)"/>
<!-- L4 Toolkit -->
<arg name="launch_l4_toolkit" value="true"/>
</include>
Expand Down

0 comments on commit 1c8cffa

Please sign in to comment.