Skip to content

Commit

Permalink
Added world folder to the install path
Browse files Browse the repository at this point in the history
the launch file for the simulation can now be launched from anywhere
  • Loading branch information
VincidaB committed Jan 11, 2024
1 parent fcfad12 commit d583150
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ezbot_descr_simul/launch/launch_sim.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def generate_launch_description():
return LaunchDescription([
DeclareLaunchArgument(
'world',
default_value=[os.path.join('ezbot_gazebo','worlds','table2024.world'), ''],
#default_value=[os.path.join('ezbot_gazebo','worlds','table2024.world'), ''],
default_value=[os.path.join(get_package_share_directory("ezbot_gazebo"), 'worlds', 'table2024.world'), ''],
description='SDF world file'),
rsp,
gazebo,
Expand Down
5 changes: 5 additions & 0 deletions src/ezbot_gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ if(BUILD_TESTING)
ament_lint_auto_find_test_dependencies()
endif()

# add worlds as files to install
install(DIRECTORY worlds/
DESTINATION share/${PROJECT_NAME}/worlds/
)

ament_package()

0 comments on commit d583150

Please sign in to comment.