예제 #1
0
def createTTSGoal(text, lang_id='', wait_before_speaking=rospy.Duration(0.0)):
    """Creates a 
    @arg j1 float value for head_1_joint
    @returns FollowJointTrajectoryGoal with the specified goal"""
    sound_goal = SoundGoal()
    sound_goal.text=text
    sound_goal.lang_id=lang_id
    sound_goal.wait_before_speaking=wait_before_speaking
    return sound_goal
예제 #2
0
 def create_say_goal(self, tts_text, tts_wait_before_speaking, tts_lang):
     rospy.loginfo(tts_text)
     say_goal = SoundGoal()
     say_goal.wait_before_speaking.secs = tts_wait_before_speaking 
     say_goal.wait_before_speaking.nsecs = 0
     say_goal.text = tts_text
     say_goal.lang_id = tts_lang
      
     return say_goal
예제 #3
0
파일: say.py 프로젝트: yalim/robocup2014
    def create_say_goal(self, tts_text, tts_wait_before_speaking, tts_lang):

        rospy.loginfo(tts_text)
        say_goal = SoundGoal()
        say_goal.wait_before_speaking.secs = tts_wait_before_speaking
        say_goal.wait_before_speaking.nsecs = 0
        say_goal.text = tts_text
        say_goal.lang_id = tts_lang
        return say_goal
예제 #4
0
def createTTSGoal(text, lang_id='', wait_before_speaking=rospy.Duration(0.0)):
    """Creates a 
    @arg j1 float value for head_1_joint
    @returns FollowJointTrajectoryGoal with the specified goal"""
    sound_goal = SoundGoal()
    sound_goal.text = text
    sound_goal.lang_id = lang_id
    sound_goal.wait_before_speaking = wait_before_speaking
    return sound_goal