Skip to content

Commit 208a687

Browse files
committed
[jsk_tools/audible_warning] Fixed typo language to arg2 and set default value to ""
1 parent c8ec9b8 commit 208a687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jsk_tools/src/audible_warning.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def eval_fn(topic, m, t):
2828
class SpeakThread(Thread):
2929

3030
def __init__(self, rate=1.0, wait=True, blacklist=None,
31-
language='en',
31+
language='',
3232
volume=1.0,
3333
speak_interval=0,
3434
seconds_to_start_speaking=0,
@@ -97,7 +97,7 @@ def run(self):
9797
goal.sound_request.sound = SoundRequest.SAY
9898
goal.sound_request.command = SoundRequest.PLAY_ONCE
9999
goal.sound_request.arg = sentence
100-
goal.sound_request.language = self.language
100+
goal.sound_request.arg2 = self.language
101101
goal.sound_request.volume = self.volume
102102

103103
self.previous_spoken_time[e.name] = rospy.Time.now().to_sec()
@@ -114,7 +114,7 @@ def __init__(self):
114114
speak_interval = rospy.get_param("~speak_interval", 120.0)
115115
wait_speak = rospy.get_param("~wait_speak", True)
116116
volume = rospy.get_param("~volume", 1.0)
117-
language = rospy.get_param('~language', 'en')
117+
language = rospy.get_param('~language', '')
118118
seconds_to_start_speaking = rospy.get_param(
119119
'~seconds_to_start_speaking', 0)
120120

0 commit comments

Comments
 (0)