rosのpocketsphinxの使い方
インストール
- $ git clone https://github.com/mikeferguson/pocketsphinx.git
- $ sudo apt-get install gstreamer0.10-pocketsphinx
- $ sudo apt-get install gstreamer0.10-gconf
修正
- pocketsphinx/nodes/recognizer.py
- pocketsphinx/nodes/voice_cmd_vel.py
のpublisherに queue_size = 10 を追加
実行
Terminal1
- roslaunch pocketsphinx voice_cmd.launch
(or roslaunch pocketsphinx robocup.launch)
Terminal2
- rostopic echo /recognizer/output
を確認。以下の言葉を聞き取ることができる。
forward left right back backward stop move forward move right move left move back move backward halt half speed full speed