Skip to content

Commit

Permalink
Merge pull request #43 from flferretti/patch-1
Browse files Browse the repository at this point in the history
Fix URDF detection logic
  • Loading branch information
diegoferigo authored Sep 23, 2024
2 parents 0cc5039 + f20e27d commit 8ceec63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rod/sdf/sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def load(sdf: pathlib.Path | str, is_urdf: bool | None = None) -> Sdf:
# Case 3: It's an SDF/URDF string
case str():
sdf_string = sdf
is_urdf = "<robot>" in sdf_string
is_urdf = "<robot" in sdf_string

# Case 4: Raise an error for unsupported types
case _:
Expand Down

0 comments on commit 8ceec63

Please sign in to comment.