-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checking the existance all joints in required group on HrpsysJointTra…
…jectoryBridge (ignore not existing joint)
- Loading branch information
1 parent
239cacb
commit 7f8f779
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 comments
on commit 7f8f779
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.
はい、それがいいように思います。
joint_names > joint_list : 使われない指令値がある 意図したのに動かない関節があるが、問題は起こらない
joint_names < joint_list : 不定になる指令値がある Seqに不定値や0などの意図しない指令値を入れることになって、ロボットが意図せず動くので問題
ということですね。
joint_names != joint_list の場合は、warningを出すというのでどうでしょうか?
常にwarnigが出ると目障りということもあるかもしれませんが。
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.
Warning は
https://github.com/start-jsk/rtmros_common/blob/b18d13d64672631f317e8527bf0e64fed41045af/hrpsys_ros_bridge/src/HrpsysJointTrajectoryBridge.cpp#L303
で出ていると思います
AngleVectorを送るタイミングでしか出ないのでそれほど気にはならないかと、、、
2017年2月14日(火) 21:24 Yohei Kakiuchi <[email protected]>:
はい、それがいいように思います。
joint_names > joint_list : 使われない指令値がある 意図したのに動かない関節があるが、問題は起こらない
joint_names < joint_list : 不定になる指令値がある
Seqに不定値や0などの意図しない指令値を入れることになって、ロボットが意図せず動くので問題
ということですね。
joint_names != joint_list の場合は、warningを出すというのでどうでしょうか?
常にwarnigが出ると目障りということもあるかもしれませんが。
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<7f8f779#commitcomment-20875874>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeG3JlA0Q6WtK15dLeixhQdItT0HmXOks5rcZzlgaJpZM4MASO6>
.
--
--
◉ Kei Okada
@YoheiKakiuchi
ここのエラーチェックなんだけど、
joint_names = 指令値の関節数.
joint_list = モデルの関節数(あるいはパラメータで設定した関節数)
どういう不等号にしたらいいかわからないんだけど、#996
で以下のようにエラーになっていて、joint_namesはJ1-J7なんだけど、モデルから取ってくるとHANDもある.
このテストはPA10をつかっていて、limbではなくてfullbodyなので、このPRでfullbodyもSeqState... をつかわずに、
HrpsysJoint .. を使うようにしたのが原因で、いままでSeqStateではエラーチェックはしていなかった.
とりあえず、想定していない関節を指令されたら、なんか変、ということで、エラーにするほうこうにしたのと、
その後ろでも、指令値に知らない関節があったらエラーだけど、必要な関節が全て指令値になくてもOKにしてみた.
b18d13d どうでしょうか.