From a86c4407aae2f58f97dad180de4de170f01a37ea Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Tue, 28 Jan 2025 17:23:08 +0100 Subject: [PATCH] Fix bottom collidable point environment variable usage --- src/jaxsim/parsers/rod/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jaxsim/parsers/rod/utils.py b/src/jaxsim/parsers/rod/utils.py index 2c1d6b376..f0a5c56f8 100644 --- a/src/jaxsim/parsers/rod/utils.py +++ b/src/jaxsim/parsers/rod/utils.py @@ -123,7 +123,7 @@ def create_box_collision( # Conditionally add the top corners based on the environment variable. top_corners = ( np.array([[0, 0, z], [x, 0, z], [x, y, z], [0, y, z]]) - if not os.environ.get("JAXSIM_COLLISION_USE_BOTTOM_ONLY", "0") + if not int(os.environ.get("JAXSIM_COLLISION_USE_BOTTOM_ONLY", "0")) else [] )