Gazebo | Ignition | Community
Ask Your Question
2

UR5 robot breaks after small collision

asked 2019-02-06 20:38:07 -0600

cambel07 gravatar image

updated 2019-02-12 01:41:21 -0600

Hi,

I am working with the simulated UR5 with a gripper, and I am trying to simulate the collision between the gripper and some object (for now just a wooden box). The problem is that whenever the robot collides with the box it wildly bounce off and most of the time if the collision is slightly strong then the controller breaks.

You can see it here https://youtu.be/aab2w8Ymc7o

I am using the following collision parameters for the wooden box :

    <collision name="collision">
    ...
    <surface>
      <contact>
        <poissons_ratio>0.347</poissons_ratio>
        <elastic_modulus>8.8e+09</elastic_modulus>
        <ode>
          <soft_cfm>0.2</soft_cfm>
          <soft_erp>0.2</soft_erp>
          <kp>1000</kp>
          <kd>10</kd>
          <max_vel>100.0</max_vel>
          <min_depth>0.001</min_depth>
        </ode>
      </contact>
    </surface>

In the case of the robot joints, I define small damping like:

<joint name=...>
  ...
  <dynamics damping="0.7" friction="0.0"/>
</joint>

How can I get a more realistic interaction between the robot and the object? I want the robot to behave stiffer instead of bouncing like crazy at any small collision.

I am using gazebo 7.14.0 with ROS Kinetic in Ubuntu 16.04.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-02-08 00:44:45 -0600

cambel07 gravatar image

Okay, I manage to solve my problem after checking the answer provided for this other post. The problem is that using the PositionJointInterface the simulator somehow cannot estimate the force interaction appropriately at the joints when there is a collision, so it breaks.

What I did, as suggested in the other post, is to implement the EffortJointInterface similarly as done here and carefully find some reasonable PID gains. So now, the simulation works more realistic, it won't break the controller even if it hits some obstacle, you can see it here.

Here is my code in case anyone needs something similar.

edit flag offensive delete link more

Comments

Thanks for the post! But the code disappered.

waltergun21 gravatar imagewaltergun21 ( 2023-04-05 09:22:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-02-06 20:38:07 -0600

Seen: 632 times

Last updated: Feb 12 '19