Gazebo | Ignition | Community
Ask Your Question

Problem with laser sensor and heigthmap

asked 2018-08-18 04:30:24 -0600

Mansan gravatar image

updated 2018-08-18 04:30:53 -0600

Hi! I'm working in a simulation that includes a laser sensor (the Hokuyo model) and a heigthmap. I have found a problem , and in some places of my heigthmaps, it seems that the laser is going through the model. In this picture you can see the effect:

image description

Has anyone have a similar problem?Any idea how this can be solve? I use Gazebo 7 in Ubuntu 16.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-21 02:37:53 -0600

Raskkii gravatar image

This is a known bug. I've had a similar problem with objects falling through the heightmap. See here:

And here's the bitbucket issue:

Until this issue is solved, you'll have to come up with a workaround. One possible way would be to create a 3D model (in Blender for example) of your terrain and insert that into your world. However, that would probably be very tedious and I haven't actually tested if the collision of 3D models is accurate.

edit flag offensive delete link more


Thanks! I actually was able to create the heigthmap as a model in blender following this tutorial and I think the problem is solved. Now I have to find a way to make this new heightmap fixed (like the one that Gazebo creates) so i don't accidentally move it when I try to place and move things on top of it.

Mansan gravatar imageMansan ( 2018-08-21 05:43:14 -0600 )edit

As Raskkii says, default Gazebo height map isn't great. Look at the default empty .world's ground plane model. That should be a good reference as to how to configure your custom heightmap. link: You'll want to set the model's static flag to true:

josephcoombe gravatar imagejosephcoombe ( 2018-08-21 09:31:48 -0600 )edit

Question Tools



Asked: 2018-08-18 04:30:24 -0600

Seen: 734 times

Last updated: Aug 21 '18