From 4f0d3ffc88081b2a27c2dd944cfe5a9d991362ec Mon Sep 17 00:00:00 2001 From: T Molnar <18432916+TJMolnar@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:14:40 +1000 Subject: [PATCH] Fix: Mesh filename handling (#443) * fixed handling of mesh filenames in URDF parsing * minor change to execution flow of filename checks for correctness --------- Co-authored-by: Tea Molnar --- roboticstoolbox/tools/urdf/urdf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roboticstoolbox/tools/urdf/urdf.py b/roboticstoolbox/tools/urdf/urdf.py index 2069af158..6094cf5c3 100644 --- a/roboticstoolbox/tools/urdf/urdf.py +++ b/roboticstoolbox/tools/urdf/urdf.py @@ -302,6 +302,8 @@ def filename(self, value): if value.startswith("package://"): value = value.replace("package://", "") + elif value.startswith("file://"): + value = value.replace("file://", "") if _base_path is None: value = rtb_path_to_datafile("xacro", value)