Heightmap -- how to get sub-meter accuracy?
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?