Robotics StackExchange | Archived questions

Decreasing trolley drift (cart: front steering)

I've just modeled a trolley for my robot to pull around, however I can't make it stop drifting. I've added friction to the wheel joints, but it does not produce any effect.

I observe the same drift with the gazebo model 'Cart: front steering'.

The trolley is fully stopped at the beginning of the simulation, but then it starts to move. If I disable the trolley's base link gravity (only wheels remain affected by gravity), it won't move. But removing the effect of gravity on the trolley is not an acceptable solution for me.

Do you have any suggestions on how to make the trolley not drift?

Edit: After removing friction from wheel joints, the robot drifts less.

Edit2: As asked in the answer:

    <mass>5.0</mass>
    <inertia>
      <ixx>0.27</ixx>       <!-- for a box: ixx = 0.083 * mass * (y*y + z*z) -->
      <ixy>0.0</ixy>         <!-- for a box: ixy = 0 -->
      <ixz>0.0</ixz>         <!-- for a box: ixz = 0 -->
      <iyy>0.15</iyy>       <!-- for a box: iyy = 0.083 * mass * (x*x + z*z) -->
      <iyz>0.0</iyz>         <!-- for a box: iyz = 0 -->
      <izz>0.415</izz>       <!-- for a box: izz = 0.083 * mass * (x*x + y*y) -->
    </inertia>
  </inertial>

For the wheels:

  <inertial>
    <mass>0.1</mass>
    <inertia>
      <ixx>0.00001</ixx>
      <ixy>0</ixy>
      <ixz>0</ixz>
      <iyy>0.00001</iyy>
      <iyz>0</iyz>
      <izz>0.00001</izz>
    </inertia>
    <pose>0 0 0 0 0 0</pose>
  </inertial>

Asked by vmatos on 2017-01-22 16:08:58 UTC

Comments

Answers

What do your inertias for the trolley look like?

Asked by JLiviero on 2017-01-24 13:13:03 UTC

Comments

Just edited my question. In the meanwhile I remove joint frictions, and the trolley doesn't drift anymore.

Asked by vmatos on 2017-01-25 04:21:54 UTC

After all, it still drifts.

Asked by vmatos on 2017-01-25 09:40:23 UTC