Gazebo | Ignition | Community
Ask Your Question
0

Gazebo9 hangs in the begining without a message

asked 2018-07-26 05:26:19 -0500

okan gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-26 08:52:42 -0500

khancyr gravatar image

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>
edit flag offensive delete link more

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 :)

okan gravatar imageokan ( 2018-07-26 14:19:54 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-26 05:26:19 -0500

Seen: 1,144 times

Last updated: Jul 26 '18