-
Notifications
You must be signed in to change notification settings - Fork 0
手先位置をリセットするメソッドの追加 #8
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
Conversation
|
@Tiryoh reset_poseメソッドで変数zero_poseに保存し、ikメソッドで現在のposeとzero_poseの差分を計算しているのですが、こんな感じで良さそうでしょうか。もっといい方法がありそうな気がするので、アドバイスいただきたいです。 |
|
Resetフラグを書いてみました。 |
Tiryoh
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.
見ました!研究室で口頭で伝えたけどこのやり方でいいと思います!
| self.pose = message.pose | ||
| rospy.loginfo(message.pose) | ||
|
|
||
| if self.reset_f: |
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.
最初だけ呼び出すためならis_firstとかの方がいいんじゃないかなと思いました
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.
ありがとうございます。
この部分なんですが、callbackで逆運動学を何度も呼び出してしまうのがよくなかったので、callbackに分岐を入れずにクラスのinit時にrospy.wait_for_messageで受け取るように変更しました。
#4