Custom gazebo world not loading in launchfile
Hello there,
I have quite a confusing problem. I created a custom Gazebo world that I am able to launch via:
$ gazebo /home/georg/catkin_ws/src/ml/worlds/chapter1_3.world
as well as with:
$ roslaunch gazebo_ros empty_world.launch world_name:="/home/georg/catkin_ws/src/ml/worlds/chapter1_3.world"
but with the following launchfile I can't manage
<launch>
<arg name="world_file" default="$(find ml)/worlds/chapter1_3.world"/>
<arg name="paused" default="false"/>
<arg name="use_sim_time" default="true"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="debug" default="false"/>
<arg name="extra_gazebo_args" default="--verbose"/>
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(arg world_file)"/>
<arg name="paused" value="$(arg paused)"/>
<arg name="use_sim_time" value="$(arg use_sim_time)"/>
<arg name="gui" value="$(arg gui)"/>
<arg name="headless" value="$(arg headless)"/>
<arg name="debug" value="$(arg debug)"/>
<arg name="extra_gazebo_args" value="$(arg extra_gazebo_args"/>
</include>
</launch>
And I can use roscd ml
to navigate to /home/georg/catkin_ws/src/ml.
What is the error that you are getting?
None, it just spawns the empty world.
After adding:
<arg name="verbose" value="true"/>
inside the include tag I can see the following error:Replaced
$(find ml)/worlds/chapter1_3.world
with the absolute path and still the same error.However if I run
roslaunch gazebo_ros empty_world.launch verbose:="true" world_name:="/home/georg/catkin_ws/src/ml/worlds/chapter1_3.world
the world spawns.