Skip to content

Commit

Permalink
Added ament hooks to track blue description files (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-palmer authored Sep 14, 2024
1 parent faf5edb commit f74bcd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,6 @@ export GZ_SIM_SYSTEM_PLUGIN_PATH=\$HOME/ardupilot_gazebo/build:\$GZ_SIM_SYSTEM_P

# Add ardupilot_gazebo models and worlds
export GZ_SIM_RESOURCE_PATH=\$HOME/ardupilot_gazebo/models:\$HOME/ardupilot_gazebo/worlds:\$GZ_SIM_RESOURCE_PATH

# Add blue models and worlds
BLUE_DESCRIPTION=\$USER_WORKSPACE/src/blue/blue_description
export GZ_SIM_RESOURCE_PATH=\$BLUE_DESCRIPTION/gazebo/models:\$BLUE_DESCRIPTION/gazebo/worlds:\$GZ_SIM_RESOURCE_PATH

# Add blue meshes
export GZ_SIM_RESOURCE_PATH=\$BLUE_DESCRIPTION/meshes:\$GZ_SIM_RESOURCE_PATH
EOT

FROM desktop AS desktop-nvidia
Expand Down
2 changes: 2 additions & 0 deletions blue_description/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ install(
DESTINATION share/blue_description
)

ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/hooks/hooks.dsv.in")

ament_package()
2 changes: 2 additions & 0 deletions blue_description/hooks/hooks.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/@PROJECT_NAME@/gazebo/models
prepend-non-duplicate;GZ_SIM_RESOURCE_PATH;@CMAKE_INSTALL_PREFIX@/share/@PROJECT_NAME@/gazebo/worlds

0 comments on commit f74bcd2

Please sign in to comment.