Skip to content

Commit

Permalink
Fix URDF detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti authored Sep 23, 2024
1 parent 0cc5039 commit f20e27d
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 f20e27d

Please sign in to comment.