Skip to content

Commit 4f0d3ff

Browse files
TJMolnarTea Molnar
and
Tea Molnar
authored
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 <Tea.Molnar@data61.csiro.au>
1 parent c7f12ef commit 4f0d3ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roboticstoolbox/tools/urdf/urdf.py

+2
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ def filename(self, value):
302302

303303
if value.startswith("package://"):
304304
value = value.replace("package://", "")
305+
elif value.startswith("file://"):
306+
value = value.replace("file://", "")
305307

306308
if _base_path is None:
307309
value = rtb_path_to_datafile("xacro", value)

0 commit comments

Comments
 (0)