-
Notifications
You must be signed in to change notification settings - Fork 28
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
[euscollada] Add size check to end-coords translation/rotation #98
Conversation
…e undefiend limb end-coords transformation/rotation breaks matching of parentheses in yaml-cpp 0.5.
インデント変わってしまっていませんか? |
ifが入ったのでインデントは1段ずれていると思います. |
のときに,exceptionをスローすればいいということはない? |
fprintf(output_fp, " (send %s-end-coords :translate (float-vector", limb_name.c_str()); |
これでいいんじゃないかな?
|
n[i]を使うならfor内で代入する必要がありますが, それだとfprintf(output_fp, " (send %s-end-coords :translate (float-vector", limb_name.c_str());より後になるのでダメだと思います. |
どうして? |
やりたいことが"Nodeが空であるかどうかの確認"なので, exceptionを期待してn[0]にアクセスする |
いろいろ議論が続いていますが,マージしても大丈夫でしょうか?それとも直す方向性があれば教えて下さい. |
ぱっと見直すと、サイズチェックのときに |
#114 |
テストはhrpsys_ros_bridge_tutorialsからもってきた,
と,一応前パターン(torsoはない)がある気がします.rotateだけが指定されている,というのは無いですが. |
[euscollada] Add size check to end-coords translation/rotation
Move all the pointcloud processing to c2
docのメンバからNodeを作ったあとにNodeのサイズを確認するように変更をしました.
euscolladaのend-coordsの生成部分に関して, 現在はtranslate, rotateの記述がない場合docの該当メンバにアクセスした時点でExceptionが出ることを期待している実装になっているようですが,
yaml-cpp-0.5ではdocのメンバにアクセスした時点ではExceptionが出ず, nodeのインデックスにアクセスした段階でExceptionが出るようになっています.
したがって中途半端にend-coordsの部分のeusのコードが生成されてしまい, 括弧対応が取れず正しいeusのモデルファイルになりません.