Skip to content
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

[hrpsys_gazebo_general]IOBplugin fix frame conversion of force-sensor #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Naoki-Hiraoka
Copy link
Contributor

IOBPlugin.cppでgazeboからForceSensorの値を取得する際の変換が正しくないのではないかというpull requestです。

gazeboからForceSensorの値を取得するために、.yamlファイルでセンサの位置を指定します。
指定する各パラメータは、hrpsys_gazebo_tutorialsにあるロボットでは、以下のような使われ方をしています。
例 :
https://github.com/start-jsk/rtmros_tutorials/blob/a546adde4cf517082c47a68bbf58eba2dbd51fae/hrpsys_gazebo_tutorials/config/HRP2JSKNTS.yaml#L117-L120

force_torque_sensors/joint_name  (センサが付いているLinkのparent joint)
force_torque_sensors/translation (上記jointからセンサへのベクトルをセンサが付いているLinkの座標系で表したもの)
force_torque_sensors/rotation(センサが付いているLink座標系から見たセンサの傾き)

一方、hrpsys_gazebo_general/IOBPluginでは、受けとった各パラメータを以下のように異なる解釈をして力やモーメントを変換しています。

force_torque_sensors/joint_name  (センサが付いているLinkのparent joint)
force_torque_sensors/translation (センサから上記jointへのベクトルをセンサ座標系で表したもの)
force_torque_sensors/rotation (センサ座標系から見たセンサが付いているLinkの傾き)

IOBPlugin側をhrpsys_gazebo_tutorialsにあるロボットでの使われ方に合わせました。

@YoheiKakiuchi
Copy link
Member

とりあえずデバッグ用に、
力センサのあるリンクに力(トルク)をかけたときに、
センサはどのような出力したらいいかの正しい値例を何例かつくってみてもらえるかな。

そのとき、修正前はどうなっていて、修正後はそれに同じくなるという感じで。

@k-okada
Copy link
Member

k-okada commented May 4, 2020

@Naoki-Hiraoka これはもう必要ないのかな?

それとも,start-jsk/rtmros_tutorials#568 に必要なのかな.

@Naoki-Hiraoka
Copy link
Contributor Author

このPR無しでもstart-jsk/rtmros_tutorials#568 は動きますので,このPRは後回しにしていただきたいです.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants