From 79c1d724bfd7b32251b1641b48b0f5e029c2ec71 Mon Sep 17 00:00:00 2001 From: sixfootsix50 Date: Sat, 2 Mar 2024 21:06:46 +0000 Subject: [PATCH] Removed depreciated launchconfigurationequals() methods --- src/rktl_launch/launch/rocket_league_sim.launch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rktl_launch/launch/rocket_league_sim.launch.py b/src/rktl_launch/launch/rocket_league_sim.launch.py index 742a0dd4..037fc258 100644 --- a/src/rktl_launch/launch/rocket_league_sim.launch.py +++ b/src/rktl_launch/launch/rocket_league_sim.launch.py @@ -54,10 +54,10 @@ def generate_launch_description(): os.path.join(get_package_share_directory( 'rktl_sim'), 'launch', 'visualizer.launch.py') ), - condition=launch.conditions.LaunchConfigurationEquals('render', 'true') + condition=IfCondition(EqualsSubstitution(LaunchConfiguration('render'), 'realistic')) ), ], - condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic') + condition=IfCondition(EqualsSubstitution(LaunchConfiguration('sim_mode'), 'realistic')) ), launch_ros.actions.SetParametersFromFile( filename=os.path.join(get_package_share_directory( @@ -68,7 +68,7 @@ def generate_launch_description(): package='rktl_control', executable='topic_delay', name='pose_delay', - condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic'), + condition=IfCondition(EqualsSubstitution(LaunchConfiguration('sim_mode'), 'realistic')), arguments=["pose_sync_early", "pose_sync", "geometry_msgs/PoseWithCovarianceStamped", launch.substitutions.LaunchConfiguration('perception_delay')] ), launch_ros.actions.Node( @@ -76,14 +76,14 @@ def generate_launch_description(): package='rktl_control', executable='topic_delay', name='pose_delay', - condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic'), + condition=IfCondition(EqualsSubstitution(LaunchConfiguration('sim_mode'), 'realistic')), arguments=["pose_sync_early", "pose_sync", "geometry_msgs/PoseWithCovarianceStamped", launch.substitutions.LaunchConfiguration('perception_delay')] ), launch_ros.actions.Node( package='rqt_gui', executable='rqt_gui', name='rqt_gui', - condition=launch.conditions.LaunchConfigurationEquals('render', 'true'), + condition=IfCondition(EqualsSubstitution(LaunchConfiguration('render'), 'true')), arguments=['--perspective-file', os.path.join(get_package_share_directory( 'rktl_launch'), 'rqt','rktl.perspective')] ),