JenniferBuehler / gazebo-pkgs

A collection of tools and plugins for Gazebo
BSD 3-Clause "New" or "Revised" License
207 stars 104 forks source link

Gripper penetrates object in Gazebo,why? #64

Closed liujun0808 closed 11 months ago

liujun0808 commented 11 months ago

When the clamping jaw is closed, the terminal prompts that the object has been grasped, but the clamping jaw remains closed until it penetrates the object. Why is this? {2RX1E}QO(J$NEA9OI~NPNE Has anyone encountered this situation? Looking forward to your reply, thank you!

liujun0808 commented 11 months ago

The object is defined by myself, the following is its description. V~S{XPQ082IL)PSJRDR_Y(6 image

JenniferBuehler commented 11 months ago

The object will be attached to the robot but if your control is still closing the gripper, it will keep moving. Though there won't be collisions causing the object and robot to fly off into space ;) the grasp plugin does not handle your grippe control, only the attachment. You should close your gripper only as much as you know is necessary to cause a collision with the object. If it goes a bit beyond, that doesn't matter. The object will still be released once you open the gripper again.

JenniferBuehler commented 11 months ago

If you need a notification on when attachment happens, so you can stop the movement: an event message is published. See this example which is subscribing to it (if you are using ROS, you can also use the ROS message which is published by this code in the link)

liujun0808 commented 11 months ago

If you need a notification on when attachment happens, so you can stop the movement: an event message is published. See this example which is subscribing to it (if you are using ROS, you can also use the ROS message which is published by this code in the link)

Thank you!!!!!Your answer gave me new ideas. I will try it and report back to you if I get good results.

JenniferBuehler commented 11 months ago

Glad I could help :) I'll close this now, please reopen if there are more comments.