Skip to content

Commit

Permalink
(naoqieus) Accept variations and abbreviations for :set-language
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Aug 18, 2022
1 parent 5b91cb9 commit 32fbea6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jsk_naoqi_robot/naoqieus/naoqi-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@
)
(:set-language
(language)
(if (keywordp language) (setq language (string-downcase language)))
(if (or (string-equal language "english")
(string-equal language "en"))
(setq language "English"))
(if (or (string-equal language "japanese")
(string-equal language "ja")
(string-equal language "jp"))
(setq language "Japanese"))
(let ((ret (instance naoqi_bridge_msgs::SetStringRequest :init))
res)
(ros::wait-for-service (format nil "~A/naoqi_driver/set_language" group-namespace))
Expand Down

0 comments on commit 32fbea6

Please sign in to comment.