warn when joints have no limits

This commit is contained in:
Michael Ferguson 2014-10-28 21:52:45 -07:00
parent ea856ed7c1
commit c1fb1b9e78
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class JointStatePublisher():
minval = float(limit.getAttribute('lower')) minval = float(limit.getAttribute('lower'))
maxval = float(limit.getAttribute('upper')) maxval = float(limit.getAttribute('upper'))
except: except:
rospy.logwarn("%s is not fixed, nor continuous, but limits are not specified!" % name)
continue continue
safety_tags = child.getElementsByTagName('safety_controller') safety_tags = child.getElementsByTagName('safety_controller')