Skip to content

Commit

Permalink
Added Env Hooks (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4hul77 committed Mar 12, 2024
1 parent 98d495f commit 98ed3fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions depthai_descriptions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch
FILES_MATCHING PATTERN "*.py")
install(DIRECTORY urdf DESTINATION share/${PROJECT_NAME})


ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/${PROJECT_NAME}.sh.in")
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/${PROJECT_NAME}.dsv.in")

ament_package()
2 changes: 2 additions & 0 deletions depthai_descriptions/env-hooks/depthai_descriptions.dsv.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prepend-non-duplicate;GAZEBO_MODEL_PATH;share
prepend-non-duplicate;GAZEBO_RESOURCE_PATH;share
3 changes: 3 additions & 0 deletions depthai_descriptions/env-hooks/depthai_descriptions.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

ament_prepend_unique_value GAZEBO_MODEL_PATH "$AMENT_CURRENT_PREFIX"
ament_prepend_unique_value GAZEBO_RESOURCE_PATH "$AMENT_CURRENT_PREFIX"

0 comments on commit 98ed3fc

Please sign in to comment.