gazebo world file show nothing [tutorial]

asked 2018-10-09 10:07:02 -0500

minash gravatar image

I'm doing gazebo tutorial I copied every code in the tutorial and ran the command
gazebo -u
However, gazebo show me the empty world. How can I get my velodyne world? image description

edit retag flag offensive close merge delete


Can you add `--verbose` after `gazebo` to see what errors are printed? Also, is `` in the home directory (the one you're at)?

chapulina gravatar imagechapulina ( 2018-10-09 10:41:53 -0500 )edit

#chapulina Thank you for answering. when I add '--verbose' I couldn't see any error. Also velodyne,world is exactly in the home directory.

minash gravatar imageminash ( 2018-10-09 11:04:33 -0500 )edit

How did you install Gazebo? Also, what models are listed under the `Models` tab on the left pane?

chapulina gravatar imagechapulina ( 2018-10-09 12:14:28 -0500 )edit

What do you get printed into terminal if you run "echo $GAZEBO_MODEL_PATH"? If you look at this location, are there models `sun` and `ground_plane`?

kumpakri gravatar imagekumpakri ( 2018-10-10 07:08:19 -0500 )edit

Fun fact. If you write following command >$ gazebo < the gazebo client will start with an empty world without any error. Are you sure your is located at some place gazebo can find it? Try running the command from the folder where the is located.

kumpakri gravatar imagekumpakri ( 2018-10-12 09:43:25 -0500 )edit

Same problem here. I also had the problem with the DEM tutorial (

@kumpakri: * with --version there is whether information nor an error; * >$ echo $GAZEBO_MODEL_PATH -> <install_prefix>/share/gazebo-8/models; * I'm very sure to have the correct path to my .world-file;

I am using Gazebo version 8.6.0 build from source on a debian 9.11 system with cmake version 3.9.5 and gcc version 6.3.0. installed.

Did some idea or solution came in the meantime

Codierknecht gravatar imageCodierknecht ( 2019-12-13 02:55:38 -0500 )edit

Adding another default model with visuals like a gazebo works as expected. It seems that the "inline definition" with <model name="velodyne_hdl-32"> [...] </model> doen't work as explained in the mentioned tutorial.

Codierknecht gravatar imageCodierknecht ( 2019-12-13 03:24:33 -0500 )edit

Ok. It was totally my fault and also extremly stupid. I added the model description before <world> instead of before </world> as I was told to in the tutorial. The ability to read can be very helpful from time to time ;)

However the DEM tutorial "results" still remain empty.

Codierknecht gravatar imageCodierknecht ( 2019-12-13 03:29:43 -0500 )edit

I also figured out that the resources have to be placed in $HOME/.gazebo. Also the DEMs have to be placed there. After copying the DEM from the tutorial to$HOME/.gazebo/dem the map was displayed as expected.

Codierknecht gravatar imageCodierknecht ( 2019-12-13 08:18:14 -0500 )edit