From bef1139d6cdd34f0a384f5ae3e4abc945041595a Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Tue, 12 Nov 2024 21:38:41 +0000 Subject: [PATCH] Added condition for use_docking Signed-off-by: Jakub Delicat --- panther_docking/launch/docking.launch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panther_docking/launch/docking.launch.py b/panther_docking/launch/docking.launch.py index d9b9764c..2b090111 100644 --- a/panther_docking/launch/docking.launch.py +++ b/panther_docking/launch/docking.launch.py @@ -116,6 +116,7 @@ def generate_launch_description(): namespace=namespace, emulate_tty=True, arguments=["--ros-args", "--log-level", log_level, "--log-level", "rcl:=INFO"], + condition=IfCondition(use_docking), ) station_launch = IncludeLaunchDescription( @@ -137,7 +138,9 @@ def generate_launch_description(): namespace=namespace, emulate_tty=True, arguments=["--ros-args", "--log-level", log_level, "--log-level", "rcl:=INFO"], - condition=IfCondition(PythonExpression(["not ", use_sim, " and ", use_wibotic_info])), + condition=IfCondition( + PythonExpression(["not ", use_sim, " and ", use_wibotic_info, " and ", use_docking]) + ), ) return LaunchDescription(