Merge pull request #90 from mikeferguson/indigo-devel

warn when joints have no limits
This commit is contained in:
Ioan A Sucan 2014-10-28 22:54:18 -07:00
commit 7566f37950
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')