Skip to content

Error message in sdf2usd wile using .stl geometry together with <world> tag #15

Description

@robinvetsch

I'm really new to the field of robotics....I would like to convert a .sdf file which contains out of several model tags (basically a simple simulation environment of a building and some other stuff which are available as .stl or .dae files) to an .usd file.

For test reason, I have reduced the file:

<?xml version="1.0" ?>
<sdf version="1.8">
	<world name="ConstructionSite">

  <!-- hallways -->
    <model name='hallway'>
    <static>1</static>
    <pose>-2 0 0 0 0 1.5707963267948966</pose>
    <link name='link'>
      <collision name='collision'>
        <geometry>
          <mesh>
            <scale>0.01 0.01 0.01</scale>
            <uri>model://hallway/meshes/Hallway.stl</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name='visual'>
        <geometry>
          <mesh>
            <scale>0.01 0.01 0.01</scale>
            <uri>model://hallway/meshes/Hallway.stl</uri>
          </mesh>
        </geometry>
        <material>
          <ambient>0.7 0.7 0.7 1</ambient>
          <diffuse>0.8 0.8 0.8 1</diffuse>
          <specular>0.01 0.01 0.01 1</specular>
        </material>
      </visual>
      <self_collide>0</self_collide>
      <kinematic>0</kinematic>
      <gravity>1</gravity>
    </link>
  </model>
  
</world>
</sdf>

The .sdf file above return the following errors:

image

If I remove the tag at the beginning and the end, then it works, but then I can only apply one model. Do I something wrong?

I used the sdf12 branch for the installation of the tool.

Many thanks for your help....

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions