Skip to content

Commit

Permalink
refactor nav_speak.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Jan 14, 2021
1 parent 5501bb4 commit 3a09053
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jsk_robot_common/jsk_robot_startup/scripts/nav_speak.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3a09053

Please sign in to comment.