Skip to content

Commit

Permalink
add processing step to prep .world file for dae export
Browse files Browse the repository at this point in the history
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
  • Loading branch information
ddengster committed Jun 4, 2021
1 parent ad7635a commit f7587f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rmf_demos_maps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@ foreach(path ${traffic_editor_paths})
DEPENDS ${map_path}
)

##############################################################################
# Generate worlds with the export dae plugin
##############################################################################
set(dae_ign_output_dir ${CMAKE_CURRENT_BINARY_DIR}/maps_dae_export/${output_world_name}_ign)
set(dae_ign_output_world_path ${dae_ign_output_dir}/${output_world_name}.world)
set(dae_ign_output_model_dir ${dae_ign_output_dir}/models)

add_custom_command(
OUTPUT ${dae_ign_output_world_path}
COMMAND ros2 run rmf_building_map_tools building_map_generator ignition_dae_export ${map_path} ${dae_ign_output_world_path} ${dae_ign_output_model_dir}
DEPENDS ${map_path}
)
add_custom_target(generate_${world_name}_dae ALL
DEPENDS ${dae_ign_output_world_path}
)
install(
DIRECTORY ${dae_ign_output_world_path}
DESTINATION share/${PROJECT_NAME}/maps_dae_export
)

##############################################################################
# generate the navmesh and required files for crowd simulation for ign
Expand Down

0 comments on commit f7587f3

Please sign in to comment.