Skip to content

Commit 325d57d

Browse files
committed
chore: use config
Signed-off-by: tzhong518 <sworgun@gmail.com>
1 parent e4cae6f commit 325d57d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

perception/traffic_light_map_based_detector/config/traffic_light_map_based_detector.param.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
max_vibration_width: 0.5 # -0.25 ~ 0.25 m
77
max_vibration_depth: 0.5 # -0.25 ~ 0.25 m
88
max_detection_range: 200.0
9+
min_timestamp_offset: -0.3 # This parameter should be configured differently for each camera considering their delay.
10+
max_timestamp_offset: 0.0 # This parameter should be configured differently for each camera considering their delay.
11+
timestamp_sample_len: 0.02
912
car_traffic_light_max_angle_range: 40.0
1013
pedestrian_traffic_light_max_angle_range: 80.0

perception/traffic_light_map_based_detector/launch/traffic_light_map_based_detector.launch.xml

-10
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
<arg name="input/route" default="/planning/mission_planning/route"/>
66
<arg name="expect/rois" default="~/expect/rois"/>
77
<arg name="output/rois" default="~/output/rois"/>
8-
<arg name="output/camera_info" default="~/camera_info"/>
9-
<!--This parameter should be configured differently for each camera considering their delay.-->
10-
<arg name="min_timestamp_offset" default="0.0"/>
11-
<!--This parameter should be configured differently for each camera considering their delay.-->
12-
<arg name="max_timestamp_offset" default="0.0"/>
13-
<arg name="timestamp_sample_len" default="0.02"/>
148
<arg name="param_path" default="$(find-pkg-share traffic_light_map_based_detector)/config/traffic_light_map_based_detector.param.yaml"/>
159

1610
<node pkg="traffic_light_map_based_detector" exec="traffic_light_map_based_detector_node" name="traffic_light_map_based_detector" output="screen">
@@ -19,10 +13,6 @@
1913
<remap from="~/expect/rois" to="$(var expect/rois)"/>
2014
<remap from="~/input/route" to="$(var input/route)"/>
2115
<remap from="~/output/rois" to="$(var output/rois)"/>
22-
<remap from="~/output/camera_info" to="$(var output/camera_info)"/>
2316
<param from="$(var param_path)"/>
24-
<param name="min_timestamp_offset" value="$(var min_timestamp_offset)"/>
25-
<param name="max_timestamp_offset" value="$(var max_timestamp_offset)"/>
26-
<param name="timestamp_sample_len" value="$(var timestamp_sample_len)"/>
2717
</node>
2818
</launch>

0 commit comments

Comments
 (0)