Skip to content

Commit

Permalink
[jsk_tools/audible_warning] Fixed typo language to arg2 and set defau…
Browse files Browse the repository at this point in the history
…lt value to ""
  • Loading branch information
iory committed May 16, 2022
1 parent c8ec9b8 commit 208a687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsk_tools/src/audible_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def eval_fn(topic, m, t):
class SpeakThread(Thread):

def __init__(self, rate=1.0, wait=True, blacklist=None,
language='en',
language='',
volume=1.0,
speak_interval=0,
seconds_to_start_speaking=0,
Expand Down Expand Up @@ -97,7 +97,7 @@ def run(self):
goal.sound_request.sound = SoundRequest.SAY
goal.sound_request.command = SoundRequest.PLAY_ONCE
goal.sound_request.arg = sentence
goal.sound_request.language = self.language
goal.sound_request.arg2 = self.language
goal.sound_request.volume = self.volume

self.previous_spoken_time[e.name] = rospy.Time.now().to_sec()
Expand All @@ -114,7 +114,7 @@ def __init__(self):
speak_interval = rospy.get_param("~speak_interval", 120.0)
wait_speak = rospy.get_param("~wait_speak", True)
volume = rospy.get_param("~volume", 1.0)
language = rospy.get_param('~language', 'en')
language = rospy.get_param('~language', '')
seconds_to_start_speaking = rospy.get_param(
'~seconds_to_start_speaking', 0)

Expand Down

0 comments on commit 208a687

Please sign in to comment.