Gazebo | Ignition | Community
Ask Your Question
0

Silent failure for multiple <include> within model.sdf? Gazebo 9

asked 2020-07-11 14:53:47 -0600

SamG gravatar image

The following .world and model.sdf fails to load the second model and Gazebo does not print an error.

Is this invalid SDF? I think so as the included model:// is missing a <model> element, but ideally Gazebo wouldn't fail silently. I tried file:// URI too.

// house.world
<sdf version="1.6">
  <world name="my_house">
    <include>
      <uri>model://sun</uri>
    </include>
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://my_room</uri>
    </include>
  </world>
</sdf>

// my_room/model.sdf 
<sdf version="1.6">
  <include>
    <uri>model://bookshelf</uri>
    <pose>0 0 1 0 0 0.0</pose>
  </include>
  <include>
    <uri>model://cafe_table</uri>
    <pose>0 4 1 0 0 0.0</pose>
  </include>
</sdf>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-13 17:32:46 -0600

chapulina gravatar image

Is this invalid SDF?

I agree with you that it looks invalid. I'm surprised that the bookshelf is loaded.

I think it's worth it ticketing an issue at https://github.com/osrf/sdformat

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-07-11 14:53:47 -0600

Seen: 61 times

Last updated: Jul 13 '20