From a85e4144dd222d4b9e1d8eead02d6fd0d5a7af39 Mon Sep 17 00:00:00 2001 From: Nibanovic Date: Wed, 13 Mar 2024 09:38:30 +0100 Subject: [PATCH 1/2] change base_macro mesh path with 'package://' syntax, mesh does not get automatically uploaded to gazebo. replaced with 'file://' syntax --- depthai_descriptions/urdf/include/base_macro.urdf.xacro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai_descriptions/urdf/include/base_macro.urdf.xacro b/depthai_descriptions/urdf/include/base_macro.urdf.xacro index e46e3bca..4fc1cbf9 100644 --- a/depthai_descriptions/urdf/include/base_macro.urdf.xacro +++ b/depthai_descriptions/urdf/include/base_macro.urdf.xacro @@ -21,7 +21,7 @@ - + From 56d44d10fe5588130a092800ab24c871ee1f6ae3 Mon Sep 17 00:00:00 2001 From: Nibanovic Date: Wed, 13 Mar 2024 09:40:34 +0100 Subject: [PATCH 2/2] add ignition gazebo environment hooks --- depthai_descriptions/env-hooks/depthai_descriptions.dsv.in | 2 ++ depthai_descriptions/env-hooks/depthai_descriptions.sh.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/depthai_descriptions/env-hooks/depthai_descriptions.dsv.in b/depthai_descriptions/env-hooks/depthai_descriptions.dsv.in index a3c3bb27..17b3b11c 100644 --- a/depthai_descriptions/env-hooks/depthai_descriptions.dsv.in +++ b/depthai_descriptions/env-hooks/depthai_descriptions.dsv.in @@ -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 diff --git a/depthai_descriptions/env-hooks/depthai_descriptions.sh.in b/depthai_descriptions/env-hooks/depthai_descriptions.sh.in index b0807523..f8b034f2 100644 --- a/depthai_descriptions/env-hooks/depthai_descriptions.sh.in +++ b/depthai_descriptions/env-hooks/depthai_descriptions.sh.in @@ -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"