-
Notifications
You must be signed in to change notification settings - Fork 88
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
[AutoBalancer] Add inverse dynamics function #1110
[AutoBalancer] Add inverse dynamics function #1110
Conversation
これは、OpenHPR3のinverse dynamics関数とどう違うかな? |
OpenHRP3のm_robot->calcInverseDynamicsを呼ぶために必要な手続きをまとめた関数なので, |
お、そうなんだね。 あと、
の3つに(コードの行の配置をかえて)並べ直したらまとまってみえるのかな。 |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
```
HRPSYS_PACKAGE_VERSION="\"315.11.0\"" -o
CMakeFiles/AutoBalancer.dir/AutoBalancer.o
-c /tmp/hrpsys-source-000-2017-03-08/src/hrpsys-base-000/rtc/Au
toBalancer/AutoBalancer.cpp
In file included from /tmp/hrpsys-source-000-2017-03
-08/src/hrpsys-base-000/rtc/AutoBalancer/AutoBalancer.cpp:14:
/tmp/hrpsys-source-000-2017-03-08/src/hrpsys-base-000/rtc/AutoBalancer/AutoBalancer.h:254:
error: ISO C++ forbids initialization of member 'is_initialized'
/tmp/hrpsys-source-000-2017-03-08/src/hrpsys-base-000/rtc/AutoBalancer/AutoBalancer.h:254:
error: making 'is_initialized' static
/tmp/hrpsys-source-000-2017-03-08/src/hrpsys-base-000/rtc/AutoBalancer/AutoBalancer.h:254:
error: ISO C++ forbids in-class initialization of non-const static member
'is_initialized'
cc: /usr/qnx650/host/qnx6/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1plus
error 1
make[2]: *** [rtc/AutoBalancer/CMakeFiles/AutoBalancer.dir/AutoBalancer.o]
Error 1
make[2]: Leaving directory `/tmp/hrpsys-source-000-2017-03-08/build'
make[1]: *** [rtc/AutoBalancer/CMakeFiles/AutoBalancer.dir/all] Error 2
make[1]: Leaving directory `/tmp/hrpsys-source-000-2017-03-08/build'
make: *** [all] Error 2
=====
```
エラーになっているみたいです
2017年3月8日(水) 23:04 Kei Okada <[email protected]>:
Refer to this link for build results (access rights to CI server needed):
http://jenkins.jsk.imi.i.u-tokyo.ac.jp:8080/job/hrpsys-qnx/2799/
*Build Log*
*last 10 lines*
[...truncated 368.92 KB...]
at org.jenkinsci.plugins.ghprb.GhprbRepository.createCommitStatus(GhprbRepository.java:122)
at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:118)
at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27)
at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
at hudson.model.Run.execute(Run.java:1773)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)
Test FAILed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1110 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeG3IWEEHJ5tGcRqxbAQ4QWi2o8ZzIXks5rjrV4gaJpZM4MWxlf>
.
--
--
◉ Kei Okada
|
struct内で初期値を書いている部分ですね. |
これは、openhrp3関連のものを今おいてしまってますが、
の3つに分けて、3は元々のコード呼ぶだけだけど、1はこれ単独で切り分けて
と3行くらいでよべるようになるのかな? あと(後退)差分で加速度を求めるなら、q, qold, qoldoldを追加するのでなく、 |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
ちょっとしばらくは試用期間ということでhrpsysにまとめて実装しておきたい気分ですね・・・
関数を分けることは可能ですが,使う人が呼ぶべき関数と呼ぶ順番を知らないと使えない・・・という運用でも大丈夫でしょうか?実装スタイルはお任せしますが.
僕の感じた雰囲気だと,Bodyは過去のステートに依存するような値は持たない気がしていて, |
と思ったら最近のABCの大改造でclass SimpleFullbodyInverseKinematicsSolverとまとめられていますし, |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
This reverts commit 9b2a76e.
…uroJSK/hrpsys-base into add-inversse-dynamics-func
何もしなければもちろん入らないけど、何らかの計算をして値をいれるときには
これは、分けるとしたらドキュメントをかくんだと思います。 それで、関数を分けるという点は、もちろん関数一個になってるとわかりやすいのでそれが良いですが、
の3つのうち、1,3が元々OpenHRP3にあるものそのもの、 ところで
だと、(こちらの)1,2をまとめて1関数にしてopenhrp3にもってくのも |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
なるほど、では一旦はJointPathExにかきましょうか。 hrpsysに追加するとしても、RTCの.cppに実装するより また、JointPathExは今eusから中の関数を呼べる形にもなってて、 |
This reverts commit 933edb0.
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
ちなみにどうも出てくるf,tはrootlink原点ではなくWorld座標系の原点におけるものっぽいという結論になったのですが,どういった名前にしましょう・・・?
そうですね・・・
eusから呼べるためにはJointPathExクラスのメンバでないといけなかったりします?
|
Refer to this link for build results (access rights to CI server needed): |
原因は入力の加速度などが綺麗でないというのはそうなんだけど、
この辺のはなしは、入力関節角度列は同じで そもそもの根本原因は、入力関節角度列自体が加速度的に
c/c++のコードがeusから呼べるので、そうでなくても何でも良いです。 |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
Refer to this link for build results (access rights to CI server needed): |
「InvDynStateBuffer」という過去のステート保存用のクラスと,4つの関数に分けました. |
Refer to this link for build results (access rights to CI server needed): |
非常に遅くなりましたが、LGTMです。 |
ありがとうございました。 |
何度か話に上がっていた逆動力学を使って詳細な多リンク系モデルのZMPを計算する関数を作りました.
恐らく正しく動いていると思います.
このPRでは呼び出し部をコメントアウトしているので,挙動には何も影響しないはずですが,
呼び出し部のコメントアウトを外せば逆動力学Ver.のZMPでgoPos出来ると思います(それがいいかどうかは別として)