ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Problem launching world files using roslaunch

asked 2020-11-18 19:49:36 -0500

rmmilner gravatar image

I am trying to launch a world file using roslaunch and running into errors. I am working with ROS kinetic and gazebo-7. My ultimate goal is to open a custom world made with the world plugin, and spawn a urdf into that world.

I have been using roslaunch to start an empty world with the following launch file, and that has worked fine.

<?xml version="1.0" encoding="UTF-8"?>
<launch>
    <include file="$(find gazebo_ros)/launch/empty_world.launch">
    </include>
</launch>

However, when I try to use the examples found in the Gazebo Ros tutorials to launch another world file, the execution fails.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<launch>

    <include file="$(find gazebo_ros)/launch/empty_world.launch">
        <arg name="world_name" value="mud.world"/> 
        <arg name="debug" value="true"/> 
    </include>
</launch>

Results in the error below:

   terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument
terminate called recursively

Thread 18 "gzserver" received signal SIGABRT, Aborted.

The result is that the gazebo window opens but never loads any world, it simply stays at a black screen.

Note: I have already put the gazebo worlds directory in my .bashrc and I have tried apt-get update and apt-get upgrade.

edit retag flag offensive close merge delete

Comments

By no means this will be a "solution", but a potential workaround https://answers.gazebosim.org/questio...

130s gravatar image 130s  ( 2020-11-19 09:06:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-19 11:51:29 -0500

rmmilner gravatar image

Solution was a simple syntax error:

<?xml version="1.0" encoding="UTF-8"?>
<launch>

  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="worlds/mud.world"/> 
  </include>
</launch>
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-18 19:49:36 -0500

Seen: 1,181 times

Last updated: Nov 19 '20