Skip to content

Commit

Permalink
display launc hupdates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomonorman committed Feb 18, 2025
1 parent c228d01 commit 4227301
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/sam_bot_nav2_gz/launch/display.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,25 @@ def generate_launch_description():
# see: https://github.com/ros2/launch/issues/545
# This code is form taken ros_gz_sim and modified to work with shell=False
# see: https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_sim/launch/gz_sim.launch.py.in
gz_env = {'GZ_SIM_SYSTEM_PLUGIN_PATH':
':'.join([os.environ.get('GZ_SIM_SYSTEM_PLUGIN_PATH', default=''),
os.environ.get('LD_LIBRARY_PATH', default='')])},
# 'IGN_GAZEBO_SYSTEM_PLUGIN_PATH': # TODO(CH3): To support pre-garden. Deprecated.
# ':'.join([os.environ.get('IGN_GAZEBO_SYSTEM_PLUGIN_PATH', default=''),
# os.environ.get('LD_LIBRARY_PATH', default='')])}
gz_env = {
'GZ_SIM_SYSTEM_PLUGIN_PATH': ':'.join([
os.environ.get('GZ_SIM_SYSTEM_PLUGIN_PATH', ''),
os.environ.get('LD_LIBRARY_PATH', '')
])
}
gazebo = [
ExecuteProcess(
condition=launch.conditions.IfCondition(run_headless),
cmd=['ruby', FindExecutable(name="gz"), 'sim', '-r', '-v', gz_verbosity, '-s', '--headless-rendering', world_path],
cmd=[FindExecutable(name="gz"), 'sim', '-r', '-v', gz_verbosity, '-s', '--headless-rendering', world_path],
output='screen',
additional_env=gz_env, # type: ignore
additional_env=gz_env,
shell=False,
),
ExecuteProcess(
condition=launch.conditions.UnlessCondition(run_headless),
cmd=['ruby', FindExecutable(name="gz"), 'sim', '-r', '-v', gz_verbosity, world_path],
cmd=[FindExecutable(name="gz"), 'sim', '-r', '-v', gz_verbosity, world_path],
output='screen',
additional_env=gz_env, # type: ignore
additional_env=gz_env,
shell=False,
)
]
Expand Down

0 comments on commit 4227301

Please sign in to comment.