Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix resource paths for Ignition Gazebo #511

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions depthai_descriptions/env-hooks/depthai_descriptions.dsv.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
prepend-non-duplicate;GAZEBO_MODEL_PATH;share
prepend-non-duplicate;GAZEBO_RESOURCE_PATH;share
prepend-non-duplicate;IGN_GAZEBO_MODEL_PATH;share
prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share
2 changes: 2 additions & 0 deletions depthai_descriptions/env-hooks/depthai_descriptions.sh.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

ament_prepend_unique_value GAZEBO_MODEL_PATH "$AMENT_CURRENT_PREFIX"
ament_prepend_unique_value GAZEBO_RESOURCE_PATH "$AMENT_CURRENT_PREFIX"
ament_prepend_unique_value IGN_GAZEBO_MODEL_PATH "$AMENT_CURRENT_PREFIX"
ament_prepend_unique_value IGN_GAZEBO_RESOURCE_PATH "$AMENT_CURRENT_PREFIX"
2 changes: 1 addition & 1 deletion depthai_descriptions/urdf/include/base_macro.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://depthai_descriptions/urdf/models/${model}.stl" />
<mesh filename="file://$(find depthai_descriptions)/urdf/models/${model}.stl" />
</geometry>
<material name="mat">
<color rgba="${r} ${g} ${b} ${a}"/>
Expand Down
Loading