Skip to content

Commit

Permalink
Added condition for use_docking
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Nov 12, 2024
1 parent 860b1cf commit bef1139
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panther_docking/launch/docking.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit bef1139

Please sign in to comment.