Skip to content

Commit

Permalink
Fix resource paths for Ignition Gazebo (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nibanovic authored Mar 15, 2024
1 parent 98ed3fc commit 0ef4b38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
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

0 comments on commit 0ef4b38

Please sign in to comment.