Skip to content

Commit 5204904

Browse files
knzo25mkquda
authored andcommitted
feat(tier4_perception_launch): added bevfusion to the launchers (autowarefoundation#10541)
* feat: added bevfusion to the launchers Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp> * chore: in case that no model is selected for bevfusion, we should use bevfusion_lidar instead of bevfusion as the model, since the later does not exist Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp> * chore: forgot to add the dep Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp> --------- Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp>
1 parent 3317537 commit 5204904

File tree

5 files changed

+97
-8
lines changed

5 files changed

+97
-8
lines changed

launch/tier4_perception_launch/launch/object_recognition/detection/detection.launch.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,25 @@
55

66
<!-- Pipeline junctions -->
77
<arg name="mode" description="options: `camera_lidar_radar_fusion`, `camera_lidar_fusion`, `lidar_radar_fusion`, `lidar` or `radar`"/>
8-
<arg name="lidar_detection_model_type" description="options: `transfusion`, `centerpoint`, `pointpainting`, `apollo`, `clustering`"/>
9-
<arg name="lidar_detection_model_name" description="options: `transfusion`, `centerpoint`, `centerpoint_tiny`, `centerpoint_sigma`, `pointpainting`"/>
8+
9+
<arg name="lidar_detection_model_type">
10+
<choice value="bevfusion"/>
11+
<choice value="centerpoint"/>
12+
<choice value="pointpainting"/>
13+
<choice value="transfusion"/>
14+
<choice value="apollo"/>
15+
<choice value="clustering"/>
16+
</arg>
17+
<arg name="lidar_detection_model_name">
18+
<choice value="bevfusion_lidar"/>
19+
<choice value="centerpoint"/>
20+
<choice value="centerpoint_tiny"/>
21+
<choice value="centerpoint_sigma"/>
22+
<choice value="pointpainting"/>
23+
<choice value="transfusion"/>
24+
<choice value=""/>
25+
</arg>
26+
1027
<arg name="use_object_filter" description="use object filter"/>
1128
<arg name="objects_filter_method" description="options: `lanelet_filter` or `position_filter`"/>
1229
<arg name="use_pointcloud_map" description="use pointcloud map filter"/>

launch/tier4_perception_launch/launch/object_recognition/detection/detector/camera_lidar_detector.launch.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,23 @@
44
<arg name="ns" description="current namespace"/>
55

66
<!-- Lidar + Camera detector parameters -->
7-
<arg name="lidar_detection_model_type" description="options: `transfusion`, `centerpoint`, `pointpainting`, `apollo`, `clustering`"/>
8-
<arg name="lidar_detection_model_name" description="options: `transfusion`, `centerpoint`, `centerpoint_tiny`, `centerpoint_sigma`, `pointpainting`"/>
7+
<arg name="lidar_detection_model_type">
8+
<choice value="bevfusion"/>
9+
<choice value="centerpoint"/>
10+
<choice value="pointpainting"/>
11+
<choice value="transfusion"/>
12+
<choice value="apollo"/>
13+
<choice value="clustering"/>
14+
</arg>
15+
<arg name="lidar_detection_model_name">
16+
<choice value="bevfusion_lidar"/>
17+
<choice value="centerpoint"/>
18+
<choice value="centerpoint_tiny"/>
19+
<choice value="centerpoint_sigma"/>
20+
<choice value="pointpainting"/>
21+
<choice value="transfusion"/>
22+
<choice value=""/>
23+
</arg>
924
<arg name="use_low_intensity_cluster_filter"/>
1025
<arg name="use_image_segmentation_based_filter"/>
1126

launch/tier4_perception_launch/launch/object_recognition/detection/detector/lidar_dnn_detector.launch.xml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
<?xml version="1.0"?>
22
<launch>
33
<!-- Lidar parameters -->
4-
<arg name="lidar_detection_model_type" description="options: `transfusion`, `centerpoint`, `pointpainting`, `apollo`, `clustering`"/>
5-
<arg name="lidar_detection_model_name" description="options: `transfusion`, `centerpoint`, `centerpoint_tiny`, `centerpoint_sigma`, `pointpainting`"/>
4+
<arg name="lidar_detection_model_type">
5+
<choice value="bevfusion"/>
6+
<choice value="centerpoint"/>
7+
<choice value="pointpainting"/>
8+
<choice value="transfusion"/>
9+
<choice value="apollo"/>
10+
<choice value="clustering"/>
11+
</arg>
12+
<arg name="lidar_detection_model_name">
13+
<choice value="bevfusion_lidar"/>
14+
<choice value="centerpoint"/>
15+
<choice value="centerpoint_tiny"/>
16+
<choice value="centerpoint_sigma"/>
17+
<choice value="pointpainting"/>
18+
<choice value="transfusion"/>
19+
<choice value=""/>
20+
</arg>
21+
622
<!-- Lidar detector parameters -->
23+
<arg name="bevfusion_model_path" default="$(var data_path)/bevfusion"/>
724
<arg name="centerpoint_model_path" default="$(var data_path)/lidar_centerpoint"/>
825
<arg name="transfusion_model_path" default="$(var data_path)/lidar_transfusion"/>
926

@@ -12,6 +29,29 @@
1229
<arg name="input/pointcloud"/>
1330
<arg name="output/objects"/>
1431

32+
<!-- BEVFusion -->
33+
<group if="$(eval &quot;'$(var lidar_detection_model_type)'=='bevfusion'&quot;)">
34+
<let name="lidar_detection_model_name" value="$(eval &quot;'bevfusion_lidar' if ''=='$(var lidar_detection_model_name)' else '$(var lidar_detection_model_name)'&quot;)"/>
35+
<push-ros-namespace namespace="bevfusion"/>
36+
<arg name="lidar_model_param_path" default="$(find-pkg-share autoware_bevfusion)/config"/>
37+
38+
<group>
39+
<include file="$(find-pkg-share autoware_bevfusion)/launch/bevfusion.launch.xml">
40+
<arg name="input/pointcloud" value="$(var input/pointcloud)"/>
41+
<arg name="output/objects" value="$(var output/objects)"/>
42+
<arg name="model_name" value="$(var lidar_detection_model_name)"/>
43+
<arg name="model_path" value="$(var bevfusion_model_path)"/>
44+
<arg name="model_param_path" value="$(var lidar_model_param_path)/$(var lidar_detection_model_name).param.yaml"/>
45+
<arg name="ml_package_param_path" value="$(var bevfusion_model_path)/ml_package_$(var lidar_detection_model_name).param.yaml"/>
46+
<arg name="class_remapper_param_path" value="$(var bevfusion_model_path)/detection_class_remapper.param.yaml"/>
47+
<arg name="common_param_path" value="$(var lidar_model_param_path)/bevfusion_common.param.yaml"/>
48+
49+
<arg name="use_pointcloud_container" value="true"/>
50+
<arg name="pointcloud_container_name" value="$(var node/pointcloud_container)"/>
51+
</include>
52+
</group>
53+
</group>
54+
1555
<!-- TransFusion -->
1656
<group if="$(eval &quot;'$(var lidar_detection_model_type)'=='transfusion'&quot;)">
1757
<let name="lidar_detection_model_name" value="$(eval &quot;'transfusion' if ''=='$(var lidar_detection_model_name)' else '$(var lidar_detection_model_name)'&quot;)"/>

launch/tier4_perception_launch/launch/perception.launch.xml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<!-- ML model parameters -->
5050
<arg name="lidar_detection_model_type" default="$(eval &quot;'$(var lidar_detection_model)'.split('/')[0]&quot;)"/>
5151
<arg name="lidar_detection_model_name" default="$(eval &quot;'$(var lidar_detection_model)'.split('/')[1] if '/' in '$(var lidar_detection_model)' else ''&quot;)"/>
52+
<arg name="bevfusion_model_path" default="$(var data_path)/bevfusion"/>
5253
<arg name="centerpoint_model_path" default="$(var data_path)/lidar_centerpoint"/>
5354
<arg name="transfusion_model_path" default="$(var data_path)/lidar_transfusion"/>
5455
<arg name="pointpainting_model_path" default="$(var data_path)/image_projection_based_fusion"/>
@@ -57,8 +58,23 @@
5758
<arg name="input/pointcloud" default="/sensing/lidar/concatenated/pointcloud" description="The topic will be used in the detection module"/>
5859
<arg name="mode" default="camera_lidar_fusion" description="options: `camera_lidar_radar_fusion`, `camera_lidar_fusion`, `lidar_radar_fusion`, `lidar` or `radar`"/>
5960
<arg name="data_path" default="$(env HOME)/autoware_data" description="packages data and artifacts directory path"/>
60-
<arg name="lidar_detection_model_type" default="$(var lidar_detection_model_type)" description="options: `transfusion`, `centerpoint`, `pointpainting`, `apollo`, `clustering`"/>
61-
<arg name="lidar_detection_model_name" default="$(var lidar_detection_model_name)" description="options: `transfusion`, `centerpoint`, `centerpoint_tiny`, `centerpoint_sigma`, `pointpainting`"/>
61+
<arg name="lidar_detection_model_type" default="$(var lidar_detection_model_type)">
62+
<choice value="bevfusion"/>
63+
<choice value="centerpoint"/>
64+
<choice value="pointpainting"/>
65+
<choice value="transfusion"/>
66+
<choice value="apollo"/>
67+
<choice value="clustering"/>
68+
</arg>
69+
<arg name="lidar_detection_model_name" default="$(var lidar_detection_model_name)">
70+
<choice value="bevfusion_lidar"/>
71+
<choice value="centerpoint"/>
72+
<choice value="centerpoint_tiny"/>
73+
<choice value="centerpoint_sigma"/>
74+
<choice value="pointpainting"/>
75+
<choice value="transfusion"/>
76+
<choice value=""/>
77+
</arg>
6278
<arg name="image_raw0" default="/sensing/camera/camera0/image_rect_color" description="image raw topic name"/>
6379
<arg name="camera_info0" default="/sensing/camera/camera0/camera_info" description="camera info topic name"/>
6480
<arg name="detection_rois0" default="/perception/object_recognition/detection/rois0" description="detection rois output topic name"/>

launch/tier4_perception_launch/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<buildtool_depend>ament_cmake_auto</buildtool_depend>
1515
<buildtool_depend>autoware_cmake</buildtool_depend>
1616

17+
<exec_depend>autoware_bevfusion</exec_depend>
1718
<exec_depend>autoware_cluster_merger</exec_depend>
1819
<exec_depend>autoware_compare_map_segmentation</exec_depend>
1920
<exec_depend>autoware_crosswalk_traffic_light_estimator</exec_depend>

0 commit comments

Comments
 (0)