Skip to content

Commit

Permalink
[tmp] correct env var
Browse files Browse the repository at this point in the history
  • Loading branch information
adivardi committed Nov 25, 2024
1 parent ad7110e commit 3c6b198
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion opennav_coverage_demo/launch/coverage_demo_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@

from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import ExecuteProcess, IncludeLaunchDescription, OpaqueFunction, RegisterEventHandler
from launch.actions import (
AppendEnvironmentVariable,
ExecuteProcess,
IncludeLaunchDescription,
OpaqueFunction,
RegisterEventHandler,
)
from launch.event_handlers import OnShutdown
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_ros.actions import Node
Expand Down Expand Up @@ -64,6 +70,8 @@ def generate_launch_description():
launch_arguments={"gz_args": ["-v4 -g "]}.items(),
)

set_env_vars_resources = AppendEnvironmentVariable('GZ_SIM_RESOURCE_PATH',sim_dir)

start_gazebo_spawner_cmd = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
os.path.join(sim_dir, 'launch', 'spawn_tb3.launch.py')),
Expand Down Expand Up @@ -104,6 +112,7 @@ def generate_launch_description():
output='screen')

ld = LaunchDescription()
ld.add_action(set_env_vars_resources)
ld.add_action(world_sdf_xacro)
ld.add_action(remove_temp_sdf_file)
ld.add_action(gazebo_server)
Expand Down

0 comments on commit 3c6b198

Please sign in to comment.