Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ported tiles to empty world #217

Merged
merged 1 commit into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lrauv_ignition_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,15 @@ configure_file(
#============================================================================
# World generation
set(WORLD_NAME "portuguese_ledge")
set(WORLD_NAME_EMPTY "empty_environment_with_tiles")
add_custom_command(
OUTPUT world_gen_cmd
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/worlds/empy_expander.py
${CMAKE_CURRENT_SOURCE_DIR}/worlds/${WORLD_NAME}.sdf.em
${CMAKE_CURRENT_BINARY_DIR}/worlds/${WORLD_NAME}.sdf
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/worlds/empy_expander.py
${CMAKE_CURRENT_SOURCE_DIR}/worlds/${WORLD_NAME_EMPTY}.sdf.em
${CMAKE_CURRENT_BINARY_DIR}/worlds/${WORLD_NAME_EMPTY}.sdf
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adityapande-1995 meta: at some point, it would be nice to have a macro to set up SDF template expansion during builds.

)

add_custom_target(world_gen_target ALL
Expand All @@ -267,6 +271,7 @@ add_custom_target(world_gen_target ALL

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/worlds/${WORLD_NAME}.sdf
${CMAKE_CURRENT_BINARY_DIR}/worlds/${WORLD_NAME_EMPTY}.sdf
DESTINATION share/${PROJECT_NAME}/worlds)

#============================================================================
Expand All @@ -277,4 +282,4 @@ install(
models
worlds
${CMAKE_CURRENT_BINARY_DIR}/hooks
DESTINATION share/${PROJECT_NAME})
DESTINATION share/${PROJECT_NAME})
Loading