Spawn an xml model in gazebo
This is my xml file(name:pool.xml):
<robot name="simple_pool"> <link name="base_link"> <inertial> <mass value="100.0"/> <origin xyz="0 0 0"/> <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/> </inertial> <visual> <origin xyz="0 0 0" rpy="0 0 0"/> <geometry> <mesh filename="package://pool_party/meshes/finalpool.dae"/> </geometry> </visual> <collision> <origin xyz="0 0 0" rpy="0 0 0 "/> <geometry> <mesh filename="package://pool_party/meshes/finalpool.dae"/> </geometry> </collision> </link> <gazebo reference="base_link"> <material>Gazebo/White</material> </gazebo> </robot>
I used the command line: rosrun gazebo spawn_model -file pwd/pool.xml -urdf -z 1 -model my_pool
I have the master node running(empty_world.launch), but after the command line nothing appears. How can I spawn the current xml file (if everything is ok with it) in an empty_world.launch??