gazebo world file show nothing [tutorial]
I'm doing gazebo tutorial http://gazebosim.org/tutorials?cat=guided_i&tut=guided_i1
I copied every code in the tutorial and ran the command
gazebo velodyne.world -u
However, gazebo show me the empty world. How can I get my velodyne world?
Asked by minash on 2018-10-09 10:07:02 UTC
Comments
Can you add
--verbose
aftergazebo
to see what errors are printed? Also, isvelodyne.world
in the home directory (the one you're at)?Asked by chapulina on 2018-10-09 10:41:53 UTC
chapulina
Thank you for answering. when I add '--verbose' I couldn't see any error. Also velodyne,world is exactly in the home directory.
Asked by minash on 2018-10-09 11:04:33 UTC
How did you install Gazebo? Also, what models are listed under the
Models
tab on the left pane?Asked by chapulina on 2018-10-09 12:14:28 UTC
What do you get printed into terminal if you run "echo $GAZEBO_MODEL_PATH"? If you look at this location, are there models
sun
andground_plane
?Asked by kumpakri on 2018-10-10 07:08:19 UTC
Fun fact. If you write following command >$ gazebo nonexistent.world < the gazebo client will start with an empty world without any error. Are you sure your velodyne.world is located at some place gazebo can find it? Try running the command from the folder where the velodyne.world is located.
Asked by kumpakri on 2018-10-12 09:43:25 UTC
Same problem here. I also had the problem with the DEM tutorial (http://gazebosim.org/tutorials/?tut=dem).
@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
Asked by Codierknecht on 2019-12-13 03:55:38 UTC
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.Asked by Codierknecht on 2019-12-13 04:24:33 UTC
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.
Asked by Codierknecht on 2019-12-13 04:29:43 UTC
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.Asked by Codierknecht on 2019-12-13 09:18:14 UTC