Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Hi elias,

your launch file structure is wrong.

  <!-- Convert an xacro and put on parameter server -->
  <param name="robot_description" command="$(find xacro)/ $(find pr2_description)/robotspr2.urdf.xacro" />

  <!-- Spawn a robot into Gazebo -->
  <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf-model pr2" />

  <!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="$(find pr2_gazebo)/worlds/"/>
    <!-- more default parameters can be changed here -->

the launch file should always have a root element <launch/> the ros wiki contains a good description about roslaunch files...

I have no idea about the second failure but it seems like one file is containing more that one line declaring the gui argument...