Gazebo | Ignition | Community
Ask Your Question

How Gazebo generate heigthmaps?

asked 2018-05-23 07:53:05 -0600

Mansan gravatar image


I'm trying to create a plugin , that , given a x,y coordinates, set the position of a model in the ground level of a heigthmap. I generate it through a greyscale image (following this tutorial: Does anybody know how gazebo generate the 3D surface from this grayscale image.

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-05-23 12:03:17 -0600

chapulina gravatar image

You mean how does Gazebo internally transform the image into a collision shape? If so, take a look at gazebo::physics::HeightmapShape. Here's the source code.

edit flag offensive delete link more


Thaks! The GetHeight function is just what I needed.

Mansan gravatar imageMansan ( 2018-05-24 02:54:46 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-05-23 07:53:05 -0600

Seen: 185 times

Last updated: May 23 '18