Gazebo | Ignition | Community
Ask Your Question
0

Problem with DEM extending on a rectangular area: "big box" appears

asked 2020-04-23 06:00:10 -0500

Simone gravatar image

updated 2020-04-23 15:55:44 -0500

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.

image description

How can I fix this this problem? Can I create in Gazebo a DEM that covers a rectangular area? Thanks in advance!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-24 10:42:41 -0500

LakeWorthB gravatar image

I would say the "box" area is probably where you DEM either has elevations of 0 or of no-data. Do you have any other tools to be able to view geotiff?

edit flag offensive delete link more

Comments

Hi, thank you for replying! I can use MATLAB probably: I've not tried yet, but I'll let you know.

Simone gravatar imageSimone ( 2020-04-25 10:20:22 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-04-23 06:00:10 -0500

Seen: 22 times

Last updated: Apr 24