From fb718d6fcd7b172f9a57e2359d1e3e6ec1c7eb1e Mon Sep 17 00:00:00 2001 From: badai nguyen <94814556+badai-nguyen@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:25:02 +0900 Subject: [PATCH] fix(common_sensor_launch): fix use_container bug (#226) Signed-off-by: badai-nguyen --- .../launch/nebula_node_container.launch.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common_sensor_launch/launch/nebula_node_container.launch.py b/common_sensor_launch/launch/nebula_node_container.launch.py index ecd21d79..eb59ab5d 100644 --- a/common_sensor_launch/launch/nebula_node_container.launch.py +++ b/common_sensor_launch/launch/nebula_node_container.launch.py @@ -262,12 +262,6 @@ def create_parameter_dict(*args): extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}], ) - target_container = ( - container - if UnlessCondition(LaunchConfiguration("use_pointcloud_container")).evaluate(context) - else LaunchConfiguration("container_name") - ) - driver_component_loader = LoadComposableNodes( composable_node_descriptions=[driver_component], target_container=container, @@ -275,7 +269,7 @@ def create_parameter_dict(*args): ) blockage_diag_loader = LoadComposableNodes( composable_node_descriptions=[blockage_diag_component], - target_container=target_container, + target_container=container, condition=IfCondition(LaunchConfiguration("enable_blockage_diag")), )