From 3a090531cef3e26084ede1e7952c9da13a69775e Mon Sep 17 00:00:00 2001 From: Shingo Kitagawa Date: Fri, 25 Dec 2020 20:25:54 +0900 Subject: [PATCH] refactor nav_speak.py --- jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py b/jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py index b1d140465d..10bc0e070c 100755 --- a/jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py +++ b/jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py @@ -39,9 +39,7 @@ def __init__(self): "/robotsound_jp/status", GoalStatusArray, self.robotsound_jp_status_callback, queue_size=1) self.sound = SoundClient(blocking=True) - self.lang = "japanese" # speak japanese by default - if rospy.has_param("/nav_speak/lang"): - self.lang = rospy.get_param("/nav_speak/lang") + self.lang = rospy.get_param("~lang", "japanese") self.client = actionlib.SimpleActionClient( 'robotsound_jp', SoundRequestAction) self.client.wait_for_server()