Home | Tutorials | Wiki | Issues
Ask Your Question

why are heightmaps subsampled?

asked 2017-09-09 11:44:59 -0500

tve gravatar image

I'm using a terrain heightmap and I notice that there's a fixed 2x subsampling built into gazebo. The subsampling is done using simple linear interpolation. Why is this done? I mean, if I wanted to subsample I could do that myself too before loading the heightmap (an image in my case) into gazebo... If the subsampling could be controlled then maybe it would be a nice feature, but as-is it just quadruples the number of vertices for what gain?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-09 12:02:52 -0500

It looks like the sampling is configurable on Gazebo 7:


edit flag offensive delete link more


Thanks for pointing this out. For some odd reason I was browsing Gazebo 6 sources, grrr.

tve gravatar imagetve ( 2017-09-09 13:26:37 -0500 )edit

Ha, the SDF 1.6 docs don't mention the <sampling> parameter in http://sdformat.org/spec?ver=1.6&elem=geometry

tve gravatar imagetve ( 2017-09-09 19:16:28 -0500 )edit
chapulina gravatar imagechapulina ( 2017-09-10 12:34:50 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-09 11:44:59 -0500

Seen: 24 times

Last updated: Sep 09