-
Notifications
You must be signed in to change notification settings - Fork 24
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
[on #242] add Craneplugin #243
Conversation
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.
nice! can you add description of plugins at https://github.com/start-jsk/rtmros_gazebo/blob/master/README.md ?
after Environment variables used in iob.cpp
Custom Plugins
Crameplugin
This plugin provides fake "Crame" in gazebo environment
<gazebo>
<plugin filename="libCranePlugin.so" name="crane_plugin">
<objname>HRP2JSKNTS</objname>
<linkname>CHEST_LINK1</linkname>
<liftheight>1.2</liftheight>
<lowerheight>0.5</lowerheight>
<liftvelocity>0.1</liftvelocity>
<lowervelocity>0.03</lowervelocity>
<pgain>2500</pgain>
<dgain>500</dgain>
<damp>10000</damp>
</plugin>
</gazebo>
Subscribed topics
objname/name/LowerCommand : put robot on the ground
objname/name/LiftCommand : lift the robot to the lift height
Cc: @pazeshun
@Naoki-Hiraoka Kindly ping |
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 description of plugins at https://github.com/start-jsk/rtmros_gazebo/blob/master/README.md ?
4c202cd
to
f4d3f49
Compare
I'm sorry for my late response. |
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.
@k-okada Could you review this?
gazeboでクレーンを使用するためのプラグインです。
gazeboでロボットを地面に置きたい時に、従来は地面より少し高い位置を指定してロボットをワープさせて落とすという手法をとっていましたが、
このプラグインを使うことで①落とすことなく、②正確なZ方向位置を指定することなく、ロボットを地面に置くことが可能になります。
URDFの以下に以下のようなタグを加えることで使用できます。
linkname
のリンクに対し、liftheight
の高さになるようにpgain
dgain
の値を用いてPD制御で外力を加えます。紐で吊るされた状態を想定しているため、鉛直上向きにのみ外力を加え、下向きには外力を加えません。
objname/name/LowerCommand
にstd_msgs/Emptyトピックを送ると、目標高さがlowerheight
までlowervelocity
の速さで徐々に下がり、目標高さがlowerheight
に到達するとこのプラグインが無効になります。objname/name/LiftCommand
にstd_msgs/Emptyトピックを送ると、このプラグインが再度有効になり、目標高さがliftheight
までliftvelocity
の速さで徐々に上がります。