Robotics StackExchange | Archived questions

load multi object from world file

Hi Dear All,

I changed one of the world file to put some cubes in world but it doesn't work, when i run this world just one cube comes to world,

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
    <!-- A global light source -->
    <include>
      <uri>model://sun</uri>
    </include>
    <!-- A ground plane -->
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <!-- First Cube -->
    <include>
      <uri>model://cube_small</uri>
      <pose>-3 -3 0 0.0 0.0 0.0</pose>
    </include>
<!-- Second Cube -->
    <include>
      <uri>model://cube_small</uri>
      <pose>3 3 0 0.0 0.0 0.0</pose>
    </include>
  </world>
</sdf> 

any one knows what is problem?

Asked by Vahid on 2013-11-21 04:25:10 UTC

Comments

does it give you any error? what is the terminal output when you load the world? and which Gazebo version are you using? Since in older versions you couldn't load multiple models with the same name.

Asked by AndreiHaidu on 2013-11-21 04:45:46 UTC

Thank you for answering, no there is not any errors, also terminal output is like as usual, my gazebo version is 1.9.1.

Asked by Vahid on 2013-11-21 05:27:15 UTC

Yes, you are right the problem just was with the name, now my problem is solved.

Asked by Vahid on 2013-11-21 14:35:39 UTC

Answers