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]