-
Notifications
You must be signed in to change notification settings - Fork 57
Fix calc static balance point #541
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
Fix calc static balance point #541
Conversation
mmurooka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the method document
https://github.com/euslisp/jskeus/pull/541/files#diff-80b7b3bf7c65ce7da90574530d5cd5b1R1020
so that we can know these forces and moments are robot receiving forces and moments.
irteus/test/test-irt-motion.l
Outdated
| (concatenate float-vector | ||
| (mapcan #'(lambda (f m) (concatenate cons f m)) | ||
| force-list moment-list) | ||
| (v- (scale (* 1e-6 (send *robot* :weight)) *g-vec*)) #F(0 0 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*robot* -> robot. Also the next line.
| (and result | ||
| (> centroid-thre (distance (apply #'midpoint 0.5 (send robot :legs :end-coords :worldpos)) | ||
| (send robot :calc-static-balance-point :force-list force-list :moment-list moment-list))) | ||
| (> 1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment about the meaning of this condition checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I follow this code, and now understand this condition check and think this is OK. (But still add comment please.)
|
Thank you for reviewing. |
|
OK, and rebase into one commit and force push, please. |
…atic-balance-point. add a test related to this.
e7ae594 to
1f4ef9e
Compare
|
force pushed. |
|
Thanks, approved. |
|
@Naoki-Hiraoka can we create documents with examples ? https://jskeus.readthedocs.io/ja/latest/irtmodel.html#inverse-kinematicstarget-coords |
|
I tried adding documents in #549 . Should I update https://github.com/jsk-ros-pkg/euslisp-docs? |
|
Thank you
Should I update https://github.com/jsk-ros-pkg/euslisp-docs?
No you do not have to.
--
--
◉ Kei Okada
|
#540
:calc-static-balance-pointの引数について、
マニュアルでは
となっていますが、
現在の実装では
force-list: ロボットが受ける力 [N]
moment-list: ロボットが与えるモーメント [Nmm]
となっています。
:calc-static-balance-pointの引数が
force-list: ロボットが受ける力 [N]
moment-list: ロボットが受けるモーメント [Nm]
となるように変更し、テストを追加しました。