Skip to content

Commit

Permalink
Fix: Mesh filename handling (#443)
Browse files Browse the repository at this point in the history
* fixed handling of mesh filenames in URDF parsing

* minor change to execution flow of filename checks for correctness

---------

Co-authored-by: Tea Molnar <[email protected]>
  • Loading branch information
TJMolnar and Tea Molnar committed Jul 29, 2024
1 parent c7f12ef commit 4f0d3ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roboticstoolbox/tools/urdf/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f0d3ff

Please sign in to comment.