Robotics StackExchange | Archived questions

Crash for model without <visual> when select Link in World Outliner

Is it possible/expected to have a model without element? When clicking its link in the outliner, Gazebo crashes due to Ogre bbox error. My use case is a composing a world with nested models, instead of a flat list. Nested elements lock the physics -- I'll post a separate question to figure out the best approach.

gzclient: /build/ogre-1.9-B6QkmW/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.

model.sdf:

<sdf version="1.6">
  <model name="my_room">
    <static>true</static>
    <link name="link">
      <collision name="collision">
        <pose>0 0 0 0 0 0</pose>
        <geometry>
          <box>
            <size>10 10 0.1</size>
          </box>
        </geometry>
      </collision>
    </link>
  </model>
</sdf>

Asked by SamG on 2020-07-11 15:16:41 UTC

Comments

This sounds like a bug on Gazebo similar to this one, which is currently being fixed: https://github.com/osrf/gazebo/issues/2040

Asked by chapulina on 2020-07-13 15:48:19 UTC

Hello ,

can you share a simplified model to replicate your setup?

Thank you

Asked by ahcorde on 2020-07-21 08:33:23 UTC

@SamG, I believe this has been fixed since Gazebo 9.1.0. Are you on 9.0.0 by any chance?

Asked by chapulina on 2020-07-23 10:35:55 UTC

@chapulina: Interesting, good to know. Yes, I was using 9.0.0 due to using the ROS apt repositories that are not updated. edit: I'm happy to resolve this issue as fixed in 9.1.0. I haven't yet digested why ROS apt repos are stuck at 9.0.0 (separate issue).

@ahcorde: the above model is the setup. Just load that model.sdf into a .world.

Asked by SamG on 2020-07-24 10:27:12 UTC

Answers