python类set_param()的实例源码

ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def volume_setting(self, data):
  rospy.loginfo('intonation range is 0 ~ 9')
  if data in self.level:
   rospy.set_param('~VOL', data)
  else:
   rospy.loginfo('currently not support this intonation level')
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def format_setting(self, data):
  rospy.set_param('~FORMAT', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def response_sensitivity(self, data):
  rospy.set_param('~ResponseSensitivity', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def workspace_setting(self, data):
  rospy.set_param('~WorkSpaces', data)

 #engine setting
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def CTP_setting(self, data):
  if data == 1:
   rospy.set_param('~CTP', data)
  else:
   rospy.loginfo('currently not support this customer terminal type')
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 15 收藏 0 点赞 0 评论 0
def Api_Key_setting(self, data):
  rospy.set_param('~Api_Key', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def Secrect_Key_setting(self, data):
  rospy.set_param('~Secrect_Key', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def Grant_type_setting(self, data):
  rospy.set_param('~Grant_type', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def Token_url_setting(self, data):
  rospy.set_param('~Token_url', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def Speeker_url_setting(self, data):
  rospy.set_param('~Speeker_url', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def sample_rate_setting(self, data):
  rospy.loginfo('please input sampling rate')
  if data in self.sample_rate_range:
   rospy.set_param('~REG_SAMPLING_RATE', data)
  else:
   rospy.loginfo('data out of range')
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def upper_level_setting(self, data):
  rospy.loginfo('please input upper level of sampling')
  rospy.set_param('~REG_UPPER_LEVEL', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def lower_level_setting(self, data):
  rospy.loginfo('please input lower level of sampling')
  rospy.set_param('~REG_LOWER_LEVEL', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def count_number_setting(self, data):
  rospy.loginfo('please input how much number of data higher than lower level counted before recording')
  rospy.set_param('~REG_COUNT_NUM:', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def save_length_setting(self, data):
  rospy.loginfo('please input recording uni length of voice data')
  rospy.set_param('~REG_SAVE_LENGTH:', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def no_words_setting(self, data):
  rospy.loginfo('please input the period of stop recording if there is no words coming')
  rospy.set_param('~REG_NO_WORDS', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def Api_Key_setting(self, data):
  rospy.loginfo('please input a Baidu API KEY')
  rospy.set_param('~REG_Api_Key', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def Secrect_Key_setting(self, data):
  rospy.loginfo('please input a Baidu Secrect Key')
  rospy.set_param('~REG_secrect_Key', data)
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 15 收藏 0 点赞 0 评论 0
def Grant_type_setting(self, data):
  rospy.loginfo('please input Baidu Grant type')
  rospy.set_param('~REG_Grant_type')
ParamSetting.py 文件源码 项目:baidu_speech 作者: DinnerHowe 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def Token_url_setting(self, data):
  rospy.loginfo('please input Baidu Token url')
  rospy.set_param('~REG_Token_url', data)


问题


面经


文章

微信
公众号

扫码关注公众号