Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin clean workspace after wstool update #92

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

708yamaguchi
Copy link
Collaborator

(日本語で失礼します)
このプルリクエストでは、wstool updateとcatkin buildの間にcatkin cleanを入れるようにしました。

今日気づいたのですが、fetch15とfetch1075がaques_talkで日本語を話せないという問題が発生していました。
/var/log/ros/jsk-fetch-startup.logには以下のようなログが残っていました。

Phont file  : /home/fetch/ros/melodic/src/jsk-ros-pkg/jsk_3rdparty/3rdparty/aques_talk/phont/aq_f1c.phont
Input file  : /tmp/_voice_text_15912.txt
Output file : /tmp/sound_play8dn1XL.wav
could not found phont file /home/fetch/ros/melodic/src/jsk-ros-pkg/jsk_3rdparty/3rdparty/aques_talk/phont/aq_f1c.phont
[ERROR] [1619510623.256105] [/sound_play_jp:rosout]: Sound synthesis failed. Is festival installed? Is a festival voice installed? Try running "rosdep satisfy sound_play|sh". Refer to http://wiki.ros.org/sound_play/Troubleshooting
[ERROR] [1619510623.257519] [/sound_play_jp:rosout]: Exception in actionlib callback: 'NoneType' object has no attribute 'command'

直接の原因としては、aques_talk/phontディレクトリに存在するべき.phontファイルがなかったからです。
その原因は、以下のとおりだと考えています。

  1. jsk_3rdpartyのmasterに新しいコミットが追加される。
  2. wstool updateでfetch体内のjsk_3rdparty(aques_talk)が新しくgit cloneされる。
  3. この時、前まで存在していたaques_talk/phontディレクトリが空になる。
  4. catkin buildでaques_talk/phontディレクトリ内に.phontファイルが生成されることが期待されるが、(おそらく)aques_talkがすでにbuildされている扱いになって新しくbuildされず、.phontファイルは生成されない。
    https://github.com/jsk-ros-pkg/jsk_3rdparty/blob/27767817252febb8322a291be36042bc5c51c76f/3rdparty/aques_talk/CMakeLists.txt#L20-L29

実際、

catkin clean aques_talk
catkin build aques_talk

すると、上記の.phontファイルが無い問題は治り、fetchは日本語を話せるようになりました。

おそらく似たような原因で、collada_urdf_jsk_patchもcleanしてbuildしないとbuildが通らない問題が発生していました。(こちらは詳細な原因は調べられていません)

毎日catkin cleanすると時間がかかりそうだなぁという気もしますが、仕方ない気がしています。

@708yamaguchi
Copy link
Collaborator Author

cc @mqcmd196

@knorth55
Copy link
Owner

catkin cleanだと全てビルドし直すので,catkin clean aques_talk collada_urdf_jsk_patchだけにしたほうがいいのではないかな.

@708yamaguchi
Copy link
Collaborator Author

Thank you for your advice!
I updated.

@knorth55 knorth55 merged commit c9d203e into knorth55:fetch15 Apr 27, 2021
@708yamaguchi 708yamaguchi deleted the clean-ws branch November 24, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants