def clearMaxSpeed(self):
     set_max_speed_srv = rospy.ServiceProxy('/mobility_base/set_max_speed', SetMaxSpeed)
     req = SetMaxSpeedRequest()
     req.linear = float('nan')
     req.angular = float('nan')
     try:
         set_max_speed_srv(req)
         self.max_speed_known = False
     except:
         pass
 def setMaxSpeed(self):
     set_max_speed_srv = rospy.ServiceProxy('/mobility_base/set_max_speed', SetMaxSpeed)
     req = SetMaxSpeedRequest()
     req.linear = self.max_linear_setting
     req.angular = self.max_angular_setting
     try:
         set_max_speed_srv(req)
         self.max_speed_known = False
     except:
         pass