Skip to content

Commit

Permalink
fix(tier4_perception_launch): update multi-channel subscribing channe…
Browse files Browse the repository at this point in the history
…l name to lidar_detection_model_type (autowarefoundation#9624)

* feat: update object detection channels in tracking.launch.xml

The object detection channels in the `tracking.launch.xml` file have been updated to include the lidar detection model type.

Signed-off-by: Taekjin LEE <[email protected]>

* feat: support even the validator is not used

add variable use_validator to the tracking launch and determine the subscribing channel depends on the use_validator value

Signed-off-by: Taekjin LEE <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin authored Dec 12, 2024
1 parent d741026 commit 3c94dbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<arg name="use_radar_tracking_fusion" default="false" description="use radar tracking fusion"/>
<let name="use_radar_tracking_fusion" value="false" if="$(eval '&quot;$(var mode)&quot;!=&quot;camera_lidar_radar_fusion&quot;')"/>
<arg name="use_multi_channel_tracker_merger"/>
<arg name="use_validator" description="use obstacle_pointcloud based validator"/>

<!-- External interface -->
<let name="input/detection_input_channels" value="['detected_objects']"/>
Expand Down Expand Up @@ -68,21 +69,23 @@
<!-- Object list for multi-channel tracker merger -->
<group if="$(var use_multi_channel_tracker_merger)">
<let name="detection_enabled_channels" value="$(var input/detection_input_channels)"/>
<let name="lidar_dnn_detection_output" value="$(var lidar_detection_model_type)_validated" if="$(var use_validator)"/>
<let name="lidar_dnn_detection_output" value="$(var lidar_detection_model_type)" unless="$(var use_validator)"/>
<group scoped="false" if="$(eval '&quot;$(var mode)&quot;==&quot;camera_lidar_radar_fusion&quot;')">
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','camera_lidar_fusion','detection_by_tracker','radar_far']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','camera_lidar_fusion','radar_far']" unless="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','camera_lidar_fusion','detection_by_tracker','radar_far']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','camera_lidar_fusion','radar_far']" unless="$(var use_detection_by_tracker)"/>
</group>
<group scoped="false" if="$(eval '&quot;$(var mode)&quot;==&quot;camera_lidar_fusion&quot;')">
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','camera_lidar_fusion','detection_by_tracker']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','camera_lidar_fusion']" unless="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','camera_lidar_fusion','detection_by_tracker']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','camera_lidar_fusion']" unless="$(var use_detection_by_tracker)"/>
</group>
<group scoped="false" if="$(eval '&quot;$(var mode)&quot;==&quot;lidar_radar_fusion&quot;')">
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','detection_by_tracker','radar_far']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','radar_far']" unless="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','detection_by_tracker','radar_far']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','radar_far']" unless="$(var use_detection_by_tracker)"/>
</group>
<group scoped="false" if="$(eval '&quot;$(var mode)&quot;==&quot;lidar&quot;')">
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated','detection_by_tracker']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_detection_model)_validated']" unless="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)','detection_by_tracker']" if="$(var use_detection_by_tracker)"/>
<let name="detection_enabled_channels" value="['lidar_$(var lidar_dnn_detection_output)']" unless="$(var use_detection_by_tracker)"/>
</group>
<group scoped="false" if="$(eval '&quot;$(var mode)&quot;==&quot;radar&quot;')">
<let name="detection_enabled_channels" value="['radar_far']"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
<arg name="use_multi_channel_tracker_merger" value="$(var use_multi_channel_tracker_merger)"/>
<arg name="use_radar_tracking_fusion" value="$(var use_radar_tracking_fusion)"/>
<arg name="use_detection_by_tracker" value="$(var use_detection_by_tracker)"/>
<arg name="use_validator" value="$(var use_object_validator)"/>
</include>
</group>

Expand Down

0 comments on commit 3c94dbf

Please sign in to comment.