Problem with DEM extending on a rectangular area: "big box" appears
Hi all,
I've downloaded a .tif
file containing raster data of Gale crater on Mars.
Since it is a high resolution file (1 pixel per meter) covering an area of about 33000 m x 57500 m, I rescale it with the command gdalwarp
proposed in Gazebo's DEM tutorial (the rescale factor equal to 1/100):
gdalwarp -ts 330 575 /Gale_original.tif /Gale_new.tif
Then I created the file Gale.world
in which the .tif
file Gale_new.tif
is loaded in order to visualize the DEM on Gazebo.
In the Gale.world
file I choose the size of the DEM as shown below:
<uri>file://media/dem/Gale_crater2.tif</uri>
<size>330 575 100</size>
(the choice for the height = 100 is not realistic, but it does not matter for now)
When I run Gazebo I visualize a sort of big box that Gazebo uses in order to transform the area where the DEM is built from rectangular (330 m x 575 m) into square (575 m x 575 m). The height of this box is equal to 100 m.
How can I fix this this problem? Can I create in Gazebo a DEM that covers a rectangular area? Thanks in advance!!