diff --git a/CMakeLists.txt b/CMakeLists.txt index 902771f..0a9f0ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,4 +32,7 @@ install(DIRECTORY DESTINATION share/${PROJECT_NAME}/ ) +ament_environment_hooks( + "${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/${PROJECT_NAME}.sh.in") + ament_package() \ No newline at end of file diff --git a/env-hooks/franka_description.sh.in b/env-hooks/franka_description.sh.in new file mode 100644 index 0000000..45d23a0 --- /dev/null +++ b/env-hooks/franka_description.sh.in @@ -0,0 +1,3 @@ +ament_prepend_unique_value GAZEBO_MODEL_PATH "@CMAKE_INSTALL_PREFIX@/share" +ament_prepend_unique_value GZ_SIM_RESOURCE_PATH "@CMAKE_INSTALL_PREFIX@/share" +ament_prepend_unique_value IGN_GAZEBO_RESOURCE_PATH "@CMAKE_INSTALL_PREFIX@/share"