Skip to content

Commit db2f6a4

Browse files
Merge pull request #784 from tier4/sync-awf-latest
chore: sync awf-latest
2 parents b5f6373 + 9c4cbd9 commit db2f6a4

17 files changed

+189
-20
lines changed

autoware_launch/config/control/control_validator/control_validator.param.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
rolling_back_velocity: 0.5
1313
over_velocity_offset: 2.0
1414
over_velocity_ratio: 0.2
15+
overrun_stop_point_dist: 0.8
1516
nominal_latency: 0.01
1617

1718
vel_lpf_gain: 0.9 # Time constant 0.33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2023 UCI SORA Lab
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
/**:
16+
ros__parameters:
17+
use_last_detect_color: true
18+
last_detect_color_hold_time: 2.0
19+
last_colors_hold_time: 1.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# cspell: ignore semseg
2+
/**:
3+
ros__parameters:
4+
5+
score_threshold: 0.35
6+
nms_threshold: 0.7
7+
8+
precision: "fp16" # Operation precision to be used on inference. Valid value is one of: [fp32, fp16, int8].
9+
calibration_algorithm: "Entropy" # Calibration algorithm to be used for quantization when precision==int8. Valid value is one of: [Entropy, (Legacy | Percentile), MinMax].
10+
dla_core_id: -1 # If positive ID value is specified, the node assign inference task to the DLA core.
11+
quantize_first_layer: false # If true, set the operating precision for the first (input) layer to be fp16. This option is valid only when precision==int8.
12+
quantize_last_layer: false # If true, set the operating precision for the last (output) layer to be fp16. This option is valid only when precision==int8.
13+
profile_per_layer: false # If true, profiler function will be enabled. Since the profile function may affect execution speed, it is recommended to set this flag true only for development purpose.
14+
clip_value: 6.0 # If positive value is specified, the value of each layer output will be clipped between [0.0, clip_value]. This option is valid only when precision==int8 and used to manually specify the dynamic range instead of using any calibration.
15+
preprocess_on_gpu: true # If true, pre-processing is performed on GPU.
16+
gpu_id: 0 # GPU ID to select CUDA Device
17+
calibration_image_list_path: "" # Path to a file which contains path to images. Those images will be used for int8 quantization.
18+
19+
# default params of tensorrt_yolox package, only effective for semseg model
20+
is_roi_overlap_segment: false
21+
overlap_roi_score_threshold: 0.3
22+
is_publish_color_mask: false
23+
roi_overlay_segment_label:
24+
UNKNOWN : false
25+
CAR : false
26+
TRUCK : false
27+
BUS : false
28+
MOTORCYCLE : false
29+
BICYCLE : false
30+
PEDESTRIAN : false
31+
ANIMAL: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**:
2+
ros__parameters:
3+
approximate_sync: false
4+
precision: fp16
5+
mean: [123.675, 116.28, 103.53] # It depends on the data on which ML model is trained
6+
std: [58.395, 57.12, 57.375] # It depends on the data on which ML model is trained
7+
backlight_threshold: 0.85
8+
classifier_type: 1
9+
traffic_light_type: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**:
2+
ros__parameters:
3+
approximate_sync: false
4+
precision: fp16
5+
mean: [123.675, 116.28, 103.53] # It depends on the data on which ML model is trained
6+
std: [58.395, 57.12, 57.375] # It depends on the data on which ML model is trained
7+
backlight_threshold: 0.85
8+
classifier_type: 1
9+
traffic_light_type: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**:
2+
ros__parameters:
3+
precision: fp16
4+
score_thresh: 0.3
5+
nms_thresh: 0.65
6+
approximate_sync: false
7+
gpu_id: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.3
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.04
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**:
2+
ros__parameters:
3+
max_vibration_pitch: 0.01745329251 # -0.5 ~ 0.5 deg
4+
max_vibration_yaw: 0.01745329251 # -0.5 ~ 0.5 deg
5+
max_vibration_height: 0.5 # -0.25 ~ 0.25 m
6+
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
7+
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
8+
max_detection_range: 200.0
9+
min_timestamp_offset: -0.3
10+
max_timestamp_offset: 0.0
11+
timestamp_sample_len: 0.02
12+
car_traffic_light_max_angle_range: 40.0
13+
pedestrian_traffic_light_max_angle_range: 80.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**:
2+
ros__parameters:
3+
azimuth_occlusion_resolution_deg: 0.15 # degree
4+
elevation_occlusion_resolution_deg: 0.08 # degree
5+
max_valid_pt_dist: 50.0
6+
# the node would wait at most max_wait_t seconds for cloud whose timestamp different with the image is less than max_image_cloud_delay.
7+
# If no cloud with timestamp difference smaller than max_image_cloud_delay is found, the node would publish occlusion ratio of all
8+
# traffic lights as 0
9+
max_image_cloud_delay: 0.5
10+
max_wait_t: 0.05
11+
max_occlusion_ratio: 50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/**:
2+
ros__parameters:
3+
max_iou_threshold: -0.5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/**:
2+
ros__parameters:
3+
use_image_transport: true

autoware_launch/launch/autoware.launch.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<arg name="rviz_respawn" default="true"/>
4646
<!-- Perception -->
4747
<arg name="perception_mode" default="lidar" description="select perception mode. camera_lidar_radar_fusion, camera_lidar_fusion, lidar_radar_fusion, lidar, radar"/>
48-
<arg name="traffic_light_recognition/use_ml_detector" default="true" description="enable traffic light fine detection"/>
48+
<arg name="traffic_light_recognition/use_high_accuracy_detection" default="true" description="enable to use high accuracy detection for traffic light recognition"/>
4949
<!-- Auto mode setting-->
5050
<arg name="enable_all_modules_auto_mode" default="false" description="enable all module's auto mode"/>
5151
<arg name="is_simulation" default="false" description="Autoware's behavior will change depending on whether this is a simulation or not."/>

autoware_launch/launch/components/tier4_perception_component.launch.xml

+54-17
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,18 @@
2222
<arg name="detected_objects_validation_method" default="obstacle_pointcloud" description="options: obstacle_pointcloud, occupancy_grid (must be used with laserscan_based_occupancy_grid_map)"/>
2323
<arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path"/>
2424
<arg name="lidar_detection_model" default="centerpoint" description="If the model name is not declared, the default model in perception.launch.xml will be used"/>
25-
<arg name="all_traffic_light_camera" default="[camera6, camera7]" description="choose camera which use for traffic light recognition"/>
26-
<arg name="traffic_light_recognition/ml_detection_model_type" default="fine_detection_model" description="select ml model for TL detection: fine_detection_model or whole_image_detection_model"/>
25+
26+
<arg name="traffic_light_recognition/camera_namespaces" default="[camera6, camera7]" description="choose camera which use for traffic light recognition"/>
27+
<arg name="traffic_light_recognition/use_high_accuracy_detection" default="true" description="select whether to use high accuracy detector for traffic light recognition"/>
28+
<arg
29+
name="traffic_light_recognition/high_accuracy_detection_type"
30+
default="fine_detection"
31+
description="select high accuracy detector type for traffic light recognition: fine_detection or whole_image_detection"
32+
/>
2733

2834
<include file="$(find-pkg-share tier4_perception_launch)/launch/perception.launch.xml">
29-
<!-- Options to Switch Launch Function/Module -->
35+
<arg name="data_path" value="$(var data_path)"/>
36+
<!-- general options to switch launch function/module -->
3037
<arg name="mode" value="$(var perception_mode)"/>
3138
<arg name="lidar_detection_model" value="$(var lidar_detection_model)"/>
3239
<arg name="vehicle_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/vehicle_info.param.yaml"/>
@@ -51,13 +58,12 @@
5158
<arg name="use_obstacle_segmentation_single_frame_filter" value="$(var use_obstacle_segmentation_single_frame_filter)"/>
5259
<arg name="use_obstacle_segmentation_time_series_filter" value="$(var use_obstacle_segmentation_time_series_filter)"/>
5360

54-
<arg name="data_path" value="$(var data_path)"/>
55-
61+
<!-- traffic light recognition options to switch launch function/module -->
5662
<arg name="use_traffic_light_recognition" value="$(var use_traffic_light_recognition)"/>
57-
<arg name="traffic_light_recognition/use_ml_detector" value="$(var traffic_light_recognition/use_ml_detector)"/>
58-
<arg name="traffic_light_recognition/ml_detection_model_type" value="$(var traffic_light_recognition/ml_detection_model_type)"/>
5963
<arg name="traffic_light_recognition/fusion_only" value="false"/>
60-
<arg name="all_traffic_light_camera" value="$(var all_traffic_light_camera)"/>
64+
<arg name="traffic_light_recognition/camera_namespaces" value="$(var traffic_light_recognition/camera_namespaces)"/>
65+
<arg name="traffic_light_recognition/use_high_accuracy_detection" value="$(var traffic_light_recognition/use_high_accuracy_detection)"/>
66+
<arg name="traffic_light_recognition/high_accuracy_detection_type" value="$(var traffic_light_recognition/high_accuracy_detection_type)"/>
6167

6268
<!-- object recognition parameters -->
6369
<arg
@@ -194,17 +200,48 @@
194200
<arg name="occupancy_grid_map_updater_param_path" value="$(find-pkg-share autoware_launch)/config/perception/occupancy_grid_map/$(var occupancy_grid_map_updater)_updater.param.yaml"/>
195201

196202
<!-- traffic light recognition parameters -->
197-
<arg name="traffic_light_arbiter_param_path" value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_arbiter/traffic_light_arbiter.param.yaml"/>
198-
<arg name="traffic_light_recognition/whole_image_detector_model_path" value="$(var data_path)/tensorrt_yolox"/>
199-
<arg name="traffic_light_recognition/whole_image_detector_model_name" value="yolox_s_car_ped_tl_detector_960_960_batch_1.onnx"/>
203+
<arg
204+
name="each_traffic_light_map_based_detector_param_path"
205+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_map_based_detector/TRAFFIC_LIGHT_RECOGNITION_CAMERA_NAMESPACE_traffic_light_map_based_detector.param.yaml"
206+
/>
207+
<arg
208+
name="traffic_light_fine_detector_param_path"
209+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_fine_detector/traffic_light_fine_detector.param.yaml"
210+
/>
211+
<arg name="yolox_traffic_light_detector_param_path" value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/tensorrt_yolox/yolox_traffic_light_detector.param.yaml"/>
212+
<arg
213+
name="car_traffic_light_classifier_param_path"
214+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_classifier/car_traffic_light_classifier.param.yaml"
215+
/>
216+
<arg
217+
name="pedestrian_traffic_light_classifier_param_path"
218+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_classifier/pedestrian_traffic_light_classifier.param.yaml"
219+
/>
220+
<arg
221+
name="traffic_light_roi_visualizer_param_path"
222+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_visualization/traffic_light_roi_visualizer.param.yaml"
223+
/>
224+
<arg name="traffic_light_selector_param_path" value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_selector/traffic_light_selector.param.yaml"/>
225+
<arg
226+
name="traffic_light_occlusion_predictor_param_path"
227+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_occlusion_predictor/traffic_light_occlusion_predictor.param.yaml"
228+
/>
200229
<arg
201230
name="traffic_light_multi_camera_fusion_param_path"
202-
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_multi_camera_fusion/traffic_light_multi_camera_fusion.param.yaml"
231+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_multi_camera_fusion/traffic_light_multi_camera_fusion.param.yaml"
232+
/>
233+
<arg name="traffic_light_arbiter_param_path" value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/traffic_light_arbiter/traffic_light_arbiter.param.yaml"/>
234+
<arg
235+
name="crosswalk_traffic_light_estimator_param_path"
236+
value="$(find-pkg-share autoware_launch)/config/perception/traffic_light_recognition/crosswalk_traffic_light_estimator/crosswalk_traffic_light_estimator.param.yaml"
203237
/>
204-
<arg name="traffic_light_fine_detector_model_path" value="$(var data_path)/traffic_light_fine_detector"/>
205-
<arg name="traffic_light_fine_detector_model_name" value="tlr_car_ped_yolox_s_batch_6"/>
206-
<arg name="traffic_light_classifier_model_path" value="$(var data_path)/traffic_light_classifier"/>
207-
<arg name="car_traffic_light_classifier_model_name" value="traffic_light_classifier_mobilenetv2_batch_6"/>
208-
<arg name="pedestrian_traffic_light_classifier_model_name" value="ped_traffic_light_classifier_mobilenetv2_batch_6"/>
238+
<arg name="traffic_light_recognition/whole_image_detection/model_path" value="$(var data_path)/tensorrt_yolox/yolox_s_car_ped_tl_detector_960_960_batch_1.onnx"/>
239+
<arg name="traffic_light_recognition/whole_image_detection/label_path" value="$(var data_path)/tensorrt_yolox/car_ped_tl_detector_labels.txt"/>
240+
<arg name="traffic_light_recognition/fine_detection/model_path" value="$(var data_path)/traffic_light_fine_detector/tlr_car_ped_yolox_s_batch_6.onnx"/>
241+
<arg name="traffic_light_recognition/fine_detection/label_path" value="$(var data_path)/traffic_light_fine_detector/tlr_labels.txt"/>
242+
<arg name="traffic_light_recognition/classification/car/model_path" value="$(var data_path)/traffic_light_classifier/traffic_light_classifier_mobilenetv2_batch_6.onnx"/>
243+
<arg name="traffic_light_recognition/classification/car/label_path" value="$(var data_path)/traffic_light_classifier/lamp_labels.txt"/>
244+
<arg name="traffic_light_recognition/classification/pedestrian/model_path" value="$(var data_path)/traffic_light_classifier/ped_traffic_light_classifier_mobilenetv2_batch_6.onnx"/>
245+
<arg name="traffic_light_recognition/classification/pedestrian/label_path" value="$(var data_path)/traffic_light_classifier/lamp_labels_ped.txt"/>
209246
</include>
210247
</launch>

autoware_launch/launch/e2e_simulator.launch.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
<!-- Sensing -->
7676
<arg name="launch_sensing_driver" value="$(var launch_sensing_driver)"/>
7777
<!-- Perception-->
78-
<arg name="traffic_light_recognition/use_ml_detector" value="false"/>
79-
<arg name="all_traffic_light_camera" value="$(var traffic_light_namespace)"/>
78+
<arg name="traffic_light_recognition/use_high_accuracy_detection" value="false"/>
79+
<arg name="traffic_light_recognition/camera_namespaces" value="$(var traffic_light_namespace)"/>
8080
<!-- Tools -->
8181
<arg name="rviz" value="$(var rviz)"/>
8282
<arg name="rviz_config" value="$(var rviz_config)"/>

0 commit comments

Comments
 (0)