Gazebo9 hangs in the begining without a message
I am working on a project where multiple drones are supposed to fly in the simulation. I use the gazebo9 with ROS kinetic from the original ubuntu repo. However, sometimes the simulator hangs at the begining with a splash screen and the GUI. The splash screen says "Preparing your world...", but the simulation never starts. This happens randomly and I do not see any message in verbose mode. Can you direct me to debug this problem? This seems like a rendering related problem, it could be some simple problem such as race conditions, but I do not know. I want to learn how to attack that problem.
Asked by okan on 2018-07-26 05:26:19 UTC
Answers
Hello, You probably having something crashing Try first to launch gazebo with empty world to check that is works ok. Then launch with one drone.
If you launch with ROS, set true to verbose parameter for gazebo .
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="verbose" value="true"/>
<arg name="world_name" value="your_world"/>
<arg name="use_sim_time" value="true"/>
</include>
Asked by khancyr on 2018-07-26 08:52:42 UTC
Comments
I do not see any crash message in verbose mode (I always run in verbose mode). With empty world, it always works, but with my own world, sometimes hangs and sometimes works as expected. When it hangs, it seems the rendering or GUI hangs, but I can see the outputs from my own plugins. I thought many people have similar experiences, but they ignore the hanging case and continue their work with the perfectly running instances :)
Asked by okan on 2018-07-26 14:19:54 UTC
Comments