Spawn service timed out, sdf model deprecated?
I am trying to launch a model to gazebo, but it failed with the following message:
Deprecated: the -gazebo tag is now -sdf
[INFO] [WallTime: 1474618632.137629] [0.000000] Loading model xml from ros parameter
[INFO] [WallTime: 1474618632.139721] [0.000000] Waiting for service /gazebo/spawn_sdf_model
[INFO] [WallTime: 1474618632.141841] [0.000000] Calling service /gazebo/spawn_sdf_model
[INFO] [WallTime: 1474618642.275829] [915.469000] Spawn status: SpawnModel: Model pushed to spawn queue, but spawn service timed out waiting for model to appear in simulation under the name land_station1
[spawn_station1-1] process has finished cleanly
log file: /home/osboxes/.ros/log/eda84d90-8163-11e6-84be-000c29a1f7dd/spawn_station1-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
I noticed it said "Deprecated: the -gazebo tag is now -sdf" and "SpawnModel: Model pushed to spawn queue, but spawn service timed out waiting for model to appear in simulation under the name land_station1"
I googled the error and found someone having same prob with me HERE
and it said that the problem is because: the urdf had some deprecated functions from old versions of gazebo.
Iam new to gazebo. Appreciate if you can help me to correct the sdf model:
<?xml version="1.0" ?>
<sdf version="1.4">
<model:physical name="land_station"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:gazebo="http://playerstage.sourceforge.net/gazebo/xmlschema/#gz"
xmlns:model="http://playerstage.sourceforge.net/gazebo/xmlschema/#model"
xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
xmlns:window="http://playerstage.sourceforge.net/gazebo/xmlschema/#window"
xmlns:param="http://playerstage.sourceforge.net/gazebo/xmlschema/#param"
xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body"
xmlns:geo="http://willowgarage.com/xmlschema/#geo"
xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom"
xmlns:joint="http://playerstage.sourceforge.net/gazebo/xmlschema/#joint"
xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
xmlns:ui="http://playerstage.sourceforge.net/gazebo/xmlschema/#ui"
xmlns:rendering="http://playerstage.sourceforge.net/gazebo/xmlschema/#rendering"
xmlns:renderable="http://playerstage.sourceforge.net/gazebo/xmlschema/#renderable"
xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
xmlns:physics="http://playerstage.sourceforge.net/gazebo/xmlschema/#physics" >
<xyz>0 0 0</xyz>
<rpy>0 0 0</rpy>
<static>true</static>
<body:trimesh name="landstation_body">
<geom:trimesh name="landstation_geom">
<scale>1.0 1.0 1.0</scale>
<mesh>Marker1.dae</mesh>
<genTexCoord>true</genTexCoord>
<visual>
<scale>1.0 1.0 1.0</scale>
<mesh>Marker1.dae</mesh>
<!--<material>Hector/BlueBrushedAluminum</material>-->
<!--<material>Hector/Gouraud</material>-->
</visual>
</geom:trimesh>
</body:trimesh>
</model:physical>
</sdf>
Anyone please?