From f20e27de104157abd3a9a3681758de9d3feb5c2f Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti <102977828+flferretti@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:02:44 +0200 Subject: [PATCH] Fix URDF detection logic --- src/rod/sdf/sdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rod/sdf/sdf.py b/src/rod/sdf/sdf.py index 2abe0aa..77cc680 100644 --- a/src/rod/sdf/sdf.py +++ b/src/rod/sdf/sdf.py @@ -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 = "" in sdf_string + is_urdf = "