# Noetic support, Magni tipping over in gazebo

**URL:** <https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607>\
**Category:** General Questions\
**Created:** [August 14, 2020, 3:20pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607 "2020-08-14T15:20:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://forum.ubiquityrobotics.com/u/chris)\
**Post date:** [August 14, 2020, 3:20pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/1 "2020-08-14T15:20:18Z")

</div>

I’m trying to simulate Magni in gazebo on ROS noetic, and it all comes up fine, but when I tele-op the robot around it tips over to the front!

 ![Screenshot from 2020-08-14 08-16-43](https://frm.ubiquityrobotics.com/uploads/default/original/1X/92b8fbd2a56aa21cce23b65ff16394b1b4b3d3c5.png)

This didn’t happen in Kinetic, so I’m wondering: will Noetic be supported? Does anyone know how to fix this?

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [August 14, 2020, 4:50pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/2 "2020-08-14T16:50:46Z")

</div>

Yes, we are slowly starting the process of porting our entire list of packages to Noetic, but it’s gonna take a while.

---

<div class="post-metadata">

**Author:** ![chris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://forum.ubiquityrobotics.com/u/chris)\
**Post date:** [August 14, 2020, 6:28pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/3 "2020-08-14T18:28:07Z")

</div>

Thanks. Any idea what this particular issue might be about? Happy to create a PR to help the porting effort if someone could point me in the right direction!

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [August 14, 2020, 7:05pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/4 "2020-08-14T19:05:17Z")

</div>

Honestly I’ve never seen anything as crazy as that, could be anything. It may be worth checking if there have been any changes to urdf and xacro since Kinetic, it’s probably something to do with the robot description.

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [August 14, 2020, 11:14pm UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/5 "2020-08-14T23:14:47Z")

</div>

As a starting point: maybe try looking into the friction between the wheels and the ground? Maybe some default changed between kinetic and noetic.

We would love it if you were able to make a PR to solve this, otherwise it may be a few months before we get around to it as @MoffKalast said.

Rohan

---

<div class="post-metadata">

**Author:** ![chris](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://forum.ubiquityrobotics.com/u/chris)\
**Post date:** [August 15, 2020, 12:42am UTC](https://forum.ubiquityrobotics.com/t/noetic-support-magni-tipping-over-in-gazebo/607/6 "2020-08-15T00:42:44Z")

</div>

Thanks for those pointers! I finally made some inroads on this. I still don’t fully understand it, but it seems to be related to the inertia matrix. Once I realized that the `origin` in the inertial element is not alone responsible for setting the location of the center of gravity (or at least so it seems), but that the inertia matrix is relevant, too, I was able to experiment with the right parameters.

I’ve found that if I make the following change in `magni.urdf.xacro`, magni behaves as expected and doesn’t tip over no matter how hard I try:

```auto
    <!-- <xacro:box_inertial_with_origin x="0.398" y="0.221" z="0.150" mass="10.0">
      <origin xyz="-0.15 0 0.03" rpy="0 0 0" />
    </xacro:box_inertial_with_origin>
 -->

    <inertial>
      <mass value="10" />
      <origin xyz="-0.15 0 0.03" rpy="0 0 0" />
      <inertia ixx="1" ixy="0.0" ixz="0.0"
        iyy="1" iyz="0.0"
        izz="1" />
    </inertial>

```

When I check the center of gravity in gazebo, it now seem to be in a reasonable place (a bit behind the front-axis), whereas before it was directly above the front-axis.
