Skip to content

Commit

Permalink
Fix bottom collidable point environment variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Jan 28, 2025
1 parent 0abc4c3 commit a86c440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/parsers/rod/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
)

Expand Down

0 comments on commit a86c440

Please sign in to comment.