From ca39edbdd888c4c9dc86c7b1580052ca64a26350 Mon Sep 17 00:00:00 2001 From: badai-nguyen Date: Thu, 5 Oct 2023 10:15:15 +0900 Subject: [PATCH] chore: add blockage_diag enable option Signed-off-by: badai-nguyen --- aip_x2_launch/launch/pandar_node_container.launch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aip_x2_launch/launch/pandar_node_container.launch.py b/aip_x2_launch/launch/pandar_node_container.launch.py index 898ec8a1..53559f19 100644 --- a/aip_x2_launch/launch/pandar_node_container.launch.py +++ b/aip_x2_launch/launch/pandar_node_container.launch.py @@ -300,6 +300,7 @@ def create_parameter_dict(*args): blockage_diag_loader = LoadComposableNodes( composable_node_descriptions=[blockage_diag_component], target_container=container, + condition=launch.conditions.IfCondition(LaunchConfiguration("enable_blockage_diag")), ) return [ @@ -347,6 +348,7 @@ def add_launch_arg(name: str, default_value=None): add_launch_arg("min_azimuth_deg", "135.0") add_launch_arg("max_azimuth_deg", "225.0") + add_launch_arg("enable_blockage_diag", "true") set_container_executable = SetLaunchConfiguration( "container_executable", "component_container",