Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error loading SDF in Fuerte Gazebo

I'm trying to load a simple SDF in Gazebo and I'm getting an error.

The SDF is copied straight from a tutorial. The code is:

<?xml version='1.0'?>
<sdf version='1.3'>
  <model name="my_robot">
     <static>true</static>
       <link name='chassis'>
        <pose>0 0 .1 0 0 0</pose>

        <collision name='collision'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </collision>

        <visual name='visual'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </visual>
      </link>
  </model>
</sdf>

I've tried two ways to launch it. First:

rosrun gazebo spawn_model -gazebo -file model.sdf -model ball

In the window I ran the above command in:

loading model xml from file
[INFO] [WallTime: 1358300336.220791] [650.630000] waiting for service /gazebo/spawn_gazebo_model
Service call failed: transport error completing service call: unable to receive data from sender, check sender's logs for details

In the terminal I launched emptyworld in:

[ERROR] [1358300336.248267505, 651.564000000]: GazeboRosApiPlugin SpawnModel Failure: input model_xml not Gazebo XML, or cannot be converted to Gazebo XML

The second way I've tried is loading using file -> open in the GUI. This gives, in the terminal:

Warning [parser.cc:348] Gazebo SDF has no gazebo element
Error [parser.cc:263] parse as old deprecated model file failed.
Error [Server.cc:396] Unable to read sdf file[/home/benjaminblumer/Dropbox/RoboticsResearch/PingPong/pingpong_models/models/SDF test/model.sdf]
click to hide/show revision 2
Switched to version 1.3. Getting a whole new error. Updated to reflect this.

Error loading SDF in Fuerte GazeboGazebo 1.3.1

I'm trying to load a simple SDF in Gazebo and I'm getting an error.error.

I'm running Gazebo 1.3.1.

The SDF is copied straight from a tutorial. The code is:

<?xml version='1.0'?>
<sdf version='1.3'>
  <model name="my_robot">
     <static>true</static>
       <link name='chassis'>
        <pose>0 0 .1 0 0 0</pose>

        <collision name='collision'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </collision>

        <visual name='visual'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </visual>
      </link>
  </model>
</sdf>

I've I tried two ways to launch it. First:it using:

rosrun gazebo spawn_model -gazebo -file model.sdf -model ball
gzfactory spawn -f model3.sdf

In the window I ran the above command in:The error I'm getting is this:

loading model xml from file
[INFO] [WallTime: 1358300336.220791] [650.630000] waiting Error [SDF.cc:984] Unable to find value for service /gazebo/spawn_gazebo_model
Service call failed: transport error completing service call: unable to receive data from sender, check sender's logs key[origin]
Error [SDF.cc:738] Missing element description for details
[origin]
Segmentation fault (core dumped)

In the terminal I launched emptyworld in:

[ERROR] [1358300336.248267505, 651.564000000]: GazeboRosApiPlugin SpawnModel Failure: input model_xml not Gazebo XML, or cannot Someone else posted about this error here.  It was said to be converted to Gazebo XML

The second way I've tried is loading using file -> open fixed in the GUI. This gives, in the terminal:

Warning [parser.cc:348] Gazebo SDF has no gazebo element
Error [parser.cc:263] parse as old deprecated model file failed.
Error [Server.cc:396] Unable to read sdf file[/home/benjaminblumer/Dropbox/RoboticsResearch/PingPong/pingpong_models/models/SDF test/model.sdf]
bug report, but I don't think it was.

Error loading SDF in Gazebo 1.3.1

I'm trying to load a simple SDF in Gazebo and I'm getting an error.

I'm running Gazebo 1.3.1.

The SDF is copied straight from a tutorial. The code is:

<?xml version='1.0'?>
<sdf version='1.3'>
  <model name="my_robot">
     <static>true</static>
       <link name='chassis'>
        <pose>0 0 .1 0 0 0</pose>

        <collision name='collision'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </collision>

        <visual name='visual'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </visual>
      </link>
  </model>
</sdf>

I tried to launch it using:

gzfactory spawn -f model3.sdf

The error I'm getting is this:

Error [SDF.cc:984] Unable to find value for key[origin]
Error [SDF.cc:738] Missing element description for [origin]
Segmentation fault (core dumped)

Someone else posted about this error here. It was said to be fixed in the bug report, but I don't think it was. was.

Is there a fix for this? Is there a better way to spawn an SDF?

Error loading SDF in Gazebo 1.3.1

I'm trying to load a simple SDF in Gazebo and I'm getting an error.

I'm running Gazebo 1.3.1.

The SDF is copied straight from a tutorial. The code is:

<?xml version='1.0'?>
<sdf version='1.3'>
  <model name="my_robot">
     <static>true</static>
       <link name='chassis'>
        <pose>0 0 .1 0 0 0</pose>

        <collision name='collision'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </collision>

        <visual name='visual'>
          <geometry>
            <box>
              <size>.4 .2 .1</size>
            </box>
          </geometry>
        </visual>
      </link>
  </model>
</sdf>

I tried to launch it using:

gzfactory spawn -f model3.sdf

The error I'm getting is this:

Error [SDF.cc:984] Unable to find value for key[origin]
Error [SDF.cc:738] Missing element description for [origin]
Segmentation fault (core dumped)

Someone else posted about this error here. It was said to be fixed in the bug report, but I don't think it was.

Is there a fix for this? Is there a better way to spawn an SDF?

Verdict: Probably a bug. Filed here . Workaround: Follow the directions given in the answer below or equivalently in the Gazebo Handbook.