parameters: (name, joint_defaults, default_min=-150, default_max=150)
return_statement: return (min_angle, max_angle)
docstring: Get limits of servo, from YAML, then URDF, then defaults if neither is defined.
docstring_summary: Get limits of servo, from YAML, then URDF, then defaults if neither is defined.
docstring_tokens: Get limits of servo from YAML then URDF then defaults if neither is defined .
function: def getServoLimits(name, joint_defaults, default_min=-150, default_max=150):
      """ Get limits of servo, from YAML, then URDF, then defaults if neither is defined. """
      min_angle = radians(default_min)
      max_angle = radians(default_max)
      
      try: 
          min_angle = joint_defaults[name]['min']
      except:
          pass
      try: 
          min_angle = radians(rospy.get_param("/arbotix/dynamixels/"+name+"/min_angle"))
      except:
          pass
  
      try: 
          max_angle = joint_defaults[name]['max']
      except:
          pass
      try: 
          max_angle = radians(rospy.get_param("/arbotix/dynamixels/"+name+"/max_angle"))
      except:
          pass
  
      return (min_angle, max_angle)
function_tokens: def getServoLimits ( name , joint_defaults , default_min = - 150 , default_max = 150 ) : min_angle = radians ( default_min ) max_angle = radians ( default_max ) try : min_angle = joint_defaults [ name ] [ 'min' ] except : pass try : min_angle = radians ( rospy . get_param ( "/arbotix/dynamixels/" + name + "/min_angle" ) ) except : pass try : max_angle = joint_defaults [ name ] [ 'max' ] except : pass try : max_angle = radians ( rospy . get_param ( "/arbotix/dynamixels/" + name + "/max_angle" ) ) except : pass return ( min_angle , max_angle )