Jack math
Jack math

Reputation: 67

Why do I have debug problem with the ROS launch file problem

I am trying to do a simple example for learning Gazebo simulation. But while I am launching the launch file I am facing the problem which I attached as a photo. Also, I added the codes I used as a launch file and as a world file.

the terminal while launching

 <!-- empty_world.launch file -->
    <?xml version="1.0" encoding="utf-8"?> 
    <launch>
         <!-- overwrite these args -->
         <arg name="debug" default="false"/>
         <arg name="gui" default="false"/>
         <arg name="pause" default="true"/>
         <arg name="world" default="$(find my_simulations)/worlds/empty_world.world"/>
         <!--include gazeboo_ros launcher-->
        <include file="$(find gazebo_ros)/launch/empty_world.launch">
             <args name="world_name" value="$(arg_world)"/>
             <arg name="debug" value="$(arg_debug)"/>
             <arg name="gui" value="$(arg_gui)"/>
             <arg name="paused" value="$(arg_pause)"/>
             <arg name="use_sim_time" value="true"/>
        </include>
</launch>


   <!-- empty_world.world file -->
       <?xml version="1.0" ?>
    <sdf version="1.5">
      <world name="default">
        <!-- A global light source -->
        <include>
          <uri>model://sun</uri>
        </include>
        <!-- A ground plane -->
        <include>
          <uri>model://ground_plane</uri>
        </include>
      </world>
    </sdf>

Upvotes: 0

Views: 788

Answers (1)

Mohammad Ali
Mohammad Ali

Reputation: 574

$(arg_world) , $(arg_debug) ,$(arg_pause) and $(arg_gui) has typing error. remove _ and it would be fine

Upvotes: 0

Related Questions