Gazebo | Ignition | Community
Ask Your Question

Custom models disappearing

asked 2019-06-19 22:20:58 -0500

arifrahman gravatar image


I'm using Parrot's Sphinx ( which is based on Gazebo 7. Somehow, when I add my own models, sometimes they disappear and collect themselves at (0,0).

There is no error / warning messages on the terminal.

Here's a video showing the issue:

This doesn't happen with the default models (tested with beer, cinder block, and cardboard box models).

What's happening???

Here's the sdf of one of my models;

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name='tc6_big_target'>
    <link name='tc6_big_target'>
      <pose>0 0 0 0 -0 0</pose>
        <pose>0.002502 0 0.50099 0 -0 0</pose>
      <collision name='tc6_big_target_collision'>
        <pose>0 0 0 1.5708 -0 0</pose>
            <scale>1 1 1</scale>
      <visual name='tc6_big_target_visual'>
        <pose>0 0 0 1.5708 -0 0</pose>
            <scale>1 1 1</scale>

What am I doing wrong here?


edit retag flag offensive close merge delete


Probably there is something wrong in your sdf file.

winston gravatar imagewinston ( 2019-06-20 03:26:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-20 06:55:35 -0500

kumpakri gravatar image

Whenever this happend to me, the problem was the physics configuration of the model. If you set extreme values (too big or too small) the physics engine will run into some computational problems.

How did you arrive to the inertia matrix for the model? Look at every place where you set some physics parameter (mass, inertia, friction, force limits etc.) and check, whether it might cause problems to the physics engine.

edit flag offensive delete link more


The issue seems to disappear after removing the < pose > element under < inertial >. Probably exactly as what you @kumpakri mentioned.

Anyway, I got the inertia matrix as a result of converting the Solidworks model into sdf, as shown in this video

arifrahman gravatar imagearifrahman ( 2019-06-20 21:28:44 -0500 )edit

Question Tools

1 follower


Asked: 2019-06-19 22:20:58 -0500

Seen: 663 times

Last updated: Jun 20 '19