Gazebo | Ignition | Community
Ask Your Question
1

Gazebo11 is always using default materials on Heightmaps?

asked 2020-04-07 05:11:22 -0500

LakeWorthB gravatar image

updated 2020-04-16 07:09:40 -0500

So I am having some problems getting the texture to show up correctly for a heightmap tag. And I am now having doubts about the example and tutorial. Looking at the example worlds/heightmap_dem.world, and it looks like this: https://bitbucket.org/osrf/gazebo_tut... But the sdf has 3 different textures added, that are supopsed to change depending on height. Why does the example show only one texture? Also if I change texture just to bricks, doesn't seem to have any affect. I have tested this in gazebo-11

This is on Ubuntu 18.04, default install with Ogre 1.9.0

C:\fakepath\Annotation 2020-04-16 080059.png

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-04-08 13:27:29 -0500

updated 2020-04-08 13:28:10 -0500

There might be a problem in how you are running the example, because I get the following output:

C:\fakepath\Screen Shot 2020-04-08 at 11.24.13 AM.png image description

Did you set GAZEBO_RESOURCE_PATH to point to the location of these textures? For gazebo9 I need to set the variable as follows before starting the simulation:

GAZEBO_RESOURCE_PATH=/usr/share/gazebo-9 gazebo <path-to>/volcano.world

Try to find where these textures are located on your machine and make sure GAZEBO_RESOURCE_PATH points there

edit flag offensive delete link more

Comments

So thanks for your reply, and it led me to find 2 issues.

  1. One, the default DEM in gazebo-11 hangs off so far off the side that I didn't notice before, and which has the gradient, but is below the actual volcano, see my screenshot.
    1. I then changed the top material listed int he world file to be bricks.png and it looks exactly the same, and then I even deleted all the material section, and it looks exactly the same, with the same gradient, which I guess is the default.
LakeWorthB gravatar imageLakeWorthB ( 2020-04-16 07:07:00 -0500 )edit

Found the overall problem, needed to delete the cache as it includes textures.

LakeWorthB gravatar imageLakeWorthB ( 2020-04-16 09:09:48 -0500 )edit

I've tried the same, and it failed miserably. I used heightmap_dem.world. which comes with gazebo and it complains about the heightmapdata size must be square.

asomerville gravatar imageasomerville ( 2020-05-27 16:44:16 -0500 )edit
2

answered 2020-04-16 09:10:11 -0500

LakeWorthB gravatar image

i found the overall problem, I needed to delete the cache when changing textures.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-04-07 05:11:22 -0500

Seen: 140 times

Last updated: Apr 16 '20