Gazebo | Ignition | Community
Ask Your Question
0

Heightmap -- how to get sub-meter accuracy?

asked 2015-11-06 09:32:03 -0500

charlesfox gravatar image

I'm working with some DEM data containing hills and mountains, and want to simulate a robot driving over them. The difference in heights at the top and base is more than 250m and I have DEM data to ~10cm accuracy. How can I get this into gazebo?

I first tried using png terrains with heightmap. With an 8bit png I can only represent color depth with ints from 0-255, which only gives 1m accuracy. 16bit pngs make gazebo fail, it interprets the 2-byte codes as two separate points.

I'm now trying DEM format files but having trouble understanding how to write to the DEM format (I need to generate the terrain programatically). Wikipedia's DEM page is not so helpful and there doesn't seem to be much else around.

Any suggestions how to do this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-08 13:19:13 -0500

NikolasE gravatar image

You could create a mesh and load that into gazebo. The easiest format is probably .obj which then can be converted to .dae e.g. via meshtool

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-11-06 09:32:03 -0500

Seen: 406 times

Last updated: Nov 08 '15