Gazebo | Ignition | Community
Ask Your Question

Laser scan ray goes through walls when using heightmaps

asked 2019-09-19 14:23:57 -0600

mlherd gravatar image


I am trying to use heightmaps for random map generation that I plan to use for testing the Navigation 2 stack.

I am able to generate heightmaps, but I am having a problem when using a laser sensor. The laser scan rays go through the model. You can see the problem in the images as well.

I have attached the model files (heightmap model and the turtlebot 3 robot model) that can be used to reproduce this issue. I was wondering if this is a Gazebo bug or I set some parameters wrong in my .sdf file.

(In the images, I increased the laser scan range to show the problem)

view from top

image description

view from bottom

image description

Test system:

  • Ubuntu 18.04.03
  • Gazebo 9.11.0
  • Grayscale image resolution: 513x513

Thanks, Melih

PS: A similar issue is mentioned here

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-05-22 22:25:54 -0600


Recently, I encountered same bug in generated heightmap.

So I developed simple script which automatically generates 3D gazebo world from 2D occupancy grid map. (

I hope it helps you.

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2019-09-19 14:23:57 -0600

Seen: 290 times

Last updated: Sep 19 '19