Home | Tutorials | Wiki | Issues
Ask Your Question
0

How Gazebo generate heigthmaps?

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

Mansan gravatar image

Hello;

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: https://github.com/AS4SR/general_info...). 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
0

answered 2018-05-23 12:03:17 -0500

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

Comments

Thaks! The GetHeight function is just what I needed.

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

Question Tools

1 follower

Stats

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

Seen: 86 times

Last updated: May 23 '18