From 9d8fafa706a495a628892a23729c07bb20788d5d Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Wed, 17 Aug 2022 14:19:31 -0700 Subject: [PATCH] Fix default joint limits Follow up to gazebosim/sdformat#1112 Signed-off-by: Steve Peters --- .../src/sdformat_mjcf/sdformat_to_mjcf/converters/joint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdformat_mjcf/src/sdformat_mjcf/sdformat_to_mjcf/converters/joint.py b/sdformat_mjcf/src/sdformat_mjcf/sdformat_to_mjcf/converters/joint.py index acfe827..5a9cf27 100644 --- a/sdformat_mjcf/src/sdformat_mjcf/sdformat_to_mjcf/converters/joint.py +++ b/sdformat_mjcf/src/sdformat_mjcf/sdformat_to_mjcf/converters/joint.py @@ -26,8 +26,8 @@ ) import sdformat_mjcf.utils.sdf_utils as su -JOINT_DEFAULT_UPPER_LIMIT = 1e16 -JOINT_DEFAULT_LOWER_LIMIT = -1e16 +JOINT_DEFAULT_UPPER_LIMIT = math.inf +JOINT_DEFAULT_LOWER_LIMIT = -math.inf JOINT_DEFAULT_DAMPING = 0.0 JOINT_DEFAULT_FRICTION = 0.0 JOINT_DEFAULT_SPRING_REFERENCE = 0.0