Skip to content

Commit

Permalink
Adding missing hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JayHerpin committed Oct 10, 2024
1 parent 86a44ec commit 341abcb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions vrx_urdf/wamv_description/hooks/resource_paths.dsv.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/
prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@/models
1 change: 1 addition & 0 deletions vrx_urdf/wamv_description/hooks/resource_paths.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ament_prepend_unique_value GZ_SIM_RESOURCE_PATH "$AMENT_CURRENT_PREFIX/share"
ament_prepend_unique_value GZ_SIM_RESOURCE_PATH "$AMENT_CURRENT_PREFIX/share/wamv_description/models"
4 changes: 4 additions & 0 deletions vrx_urdf/wamv_gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ find_package(ament_cmake REQUIRED)
find_package(xacro REQUIRED)
find_package(wamv_description REQUIRED)

# Hooks
ament_environment_hooks("hooks/resource_paths.dsv.in")
ament_environment_hooks("hooks/resource_paths.sh")

# Generate urdf files from xacro and install
# xacro_add_files(
# urdf/wamv_gazebo.urdf.xacro
Expand Down
2 changes: 2 additions & 0 deletions vrx_urdf/wamv_gazebo/hooks/resource_paths.dsv.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/
prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@/models
2 changes: 2 additions & 0 deletions vrx_urdf/wamv_gazebo/hooks/resource_paths.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ament_prepend_unique_value GZ_SIM_RESOURCE_PATH "$AMENT_CURRENT_PREFIX/share"
ament_prepend_unique_value GZ_SIM_RESOURCE_PATH "$AMENT_CURRENT_PREFIX/share/wamv_gazebo/models"

0 comments on commit 341abcb

Please sign in to comment.