From a5b7590bcfcc6d9b1491adfc3512d9a8e4369acf Mon Sep 17 00:00:00 2001 From: sixfootsix50 Date: Sun, 18 Feb 2024 19:41:27 +0000 Subject: [PATCH] Added visualizer to group action --- .../launch/rocket_league_sim.launch.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/rktl_launch/launch/rocket_league_sim.launch.py b/src/rktl_launch/launch/rocket_league_sim.launch.py index f9096b04..2f303367 100644 --- a/src/rktl_launch/launch/rocket_league_sim.launch.py +++ b/src/rktl_launch/launch/rocket_league_sim.launch.py @@ -48,8 +48,14 @@ def generate_launch_description(): ) ], condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic') - ) - + ), + launch.actions.IncludeLaunchDescription( + launch.launch_description_sources.PythonLaunchDescriptionSource( + os.path.join(get_package_share_directory( + 'rktl_sim'), 'launch', 'visualizer.launch.py') + ), + condition=launch.conditions.LaunchConfigurationEquals('render', 'true') + ), ], condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic') ), @@ -81,14 +87,6 @@ def generate_launch_description(): arguments='--perspective-file ' + os.path.join(get_package_share_directory( 'rktl_launch'), 'rqt','rktl.perspective') ), - launch.actions.IncludeLaunchDescription( - launch.launch_description_sources.PythonLaunchDescriptionSource( - os.path.join(get_package_share_directory( - 'rktl_sim'), 'launch', 'visualizer.launch.py') - ), - namespace='truth', - condition=launch.conditions.LaunchConfigurationEquals('render', 'true') - ), launch.actions.IncludeLaunchDescription( launch.launch_description_sources.PythonLaunchDescriptionSource( os.path.join(get_package_share_directory(