Open sasabot opened 8 years ago
note, compile only works with hydro (it has something to do with the compile_openhrp_model, not the script)
そういえば、一度生成したモデルでリンクもジョイントも全部消えていた問題ですが、/models以外のディレクトリで生成したものを/modelsディレクトリに移した場合、自動生成ファイルのリンクが破綻してしまう、というのがおそらく原因と思われます。 なので、上記スクリプトでは基本的に/wrlディレクトリを空の/models以下に一度コピーしてから、自動生成されたものは/genに移し、移し終わったら/modelsを削除する、といったことをやっています。
(今後モデルを手動で作成する場合も/modelsディレクトリで一度作業して、そのあと、必要なファイルをロボットディレクトリの必要な場所へ置きなおす、といった方法を取った方がよさそうですね)
それはそうと、モデルを生成しなおしても、他のロボットモデルに修正が反映されないのはやっぱりあとあと問題になりそうなので、eusのロードをリダイレクトするなど、何かしらの対策をしておく必要がありそうですね。
Because there was a big change in the models directory, there will be a change in how to generate the eus model from wrl.
This is in development.
[update] All duplicates of aero_upper.l should load from aero_four_legs/models/gen/aero_upper.l This way, we don't have to go through the cps, and we can easily run ./setup.sh after ./gen_from_wrl.sh. For the urdf, we can create a reference dummy file instead.