Skip to content

Commit

Permalink
Changed group namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sixfootsix50 committed Feb 18, 2024
1 parent e6270e9 commit e3e93e2
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions src/rktl_launch/launch/rocket_league_sim.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,35 @@ def generate_launch_description():
name='autonomy_weights',
default_value='model'
),
launch_ros.actions.SetRemap(
src="/cars/car0/odom",
dst="/cars/car0/odom_truth",
namespace="truth",
condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic')
),
launch_ros.actions.SetRemap(
src="/ball/odom",
dst="/ball/odom_truth",
namespace="truth",
launch.actions.GroupAction(
actions=[
launch_ros.actions.PushRosNamespace("truth"),
launch_ros.actions.SetRemap(
src="/cars/car0/odom",
dst="/cars/car0/odom_truth",
),
launch_ros.actions.SetRemap(
src="/ball/odom",
dst="/ball/odom_truth",
),
launch.actions.GroupAction(
actions=[
launch_ros.actions.PushRosNamespace("visualizer"),
launch_ros.actions.SetParameter(
name="window_name",
value="Ground Truth",
)
],
condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic')
)

],
condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic')
),
launch_ros.actions.SetParametersFromFile(
filename=os.path.join(get_package_share_directory(
'rktl_launch'), 'config', 'global_params.yaml')
),
launch_ros.actions.SetParameter(
name="window_name",
value="Ground Truth",
namespace="visualizer",
condition=launch.conditions.LaunchConfigurationEquals('sim_mode', 'realistic')
),
launch_ros.actions.Node(
namespace='ball',
package='rktl_control',
Expand Down

0 comments on commit e3e93e2

Please sign in to comment.