Closed kochigami closed 9 years ago
コードを貼り付けるときは```を使いましょう
で、/stop_recognition
というサービスがないらしいので、grep -iIrn stop_recognition *
とかやってみるとなにかわかるのではないでしょうか
ご教示ありがとうございます。申し訳ございません。
jsk_pepper_startup.launchの中身を見ると、nao_speech.py
を参照しているのは、
<node pkg="nao_apps" type="nao_speech.py" name="nao_speech" args="--pip=$(arg nao_ip) --pport=$(arg nao_port)"
だったのですが、
nao@pepper:~$ grep -iIrn stop_recognition *
の結果。そのパッケージに/stop_recognition
は見つかりませんでした。
中身を見てみたらsotp_recognition
になっていたため、修正して
rosrun roseus generate-all-msg-srv.sh nao_msgs
をして動くようになりました。
ありがとうございました。
ペッパーくんのサンプルコードを動かしてみたのですが、ナオで試した時と違い、音声認識をやらずにプログラムが止まってしまいました。(10回以上試して、全てこの結果になりました。)
顔認識をしてペッパーが話している間に音声認識が走り、一瞬で終わってしまっているようです。
/stop_recognitionのサービスを呼ぶところでエラーが起きているようで、 2〜3回ほど jsk_pepper_startup.launchを上げている端末で
というのがまず出て、
というエラーが出ました。
をすると、
となっているので、言葉の登録はできています。
実行時の画面についても書きます。
ここでずっと止まります。