Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Heightmap not updating in Gazebo 8 after changing .world file

$
0
0
I am using Gazebo 8 and ROS Lunar. I have this heightmap.world file which utilises heightmap. To launch the .world file in Gazebo I use the following command: `rosrun gazebo_ros gazebo heightmap.world` model://sun0truemodel://path/to/heightmap.png100 100 100 0 0falsemodel://path/to/dirt_diffusespecular.pngmodel://path/to/flat_normal.png5model://path/to/heightmap.png100 100 100 0 0 Now, the first time I launch this .world file, everything seems as it should be. However, when I make certain changes in the .world file, then launch it again in Gazebo, the heightmap doesn't change, it's as if it didn't register the change in the .world file. For example let's say I want to replace the dirt texture with grass. The diffuse line in the .world file would have to be changed to: `model://path/to/grass_diffusespecular.png`. It would be expected that the heightmap texture would then become grass instead of dirt. However, when I launch the .world file with the changes made, the displayed texture is still the dirt texture. The same problem arises with multiple textures and the x and y of the size tag (visual). The only way I've managed to make the changes shown in Gazebo is to change the heightmap visual z size to something else. It seems like any different z value will do it. So everytime I make a heightmap change in the .world file, I am required to also change the visual z value to have the change displayed in Gazebo. Surely this can't be intended behaviour? EDIT: I've found another way of making the changes shown in Gazebo and that is to delete the ~/.gazebo/paging directory. It seems that the newer gazebos store heightmaps into cache for faster loading times. It does seem a bit counter-productive having to delete the cache everytime you'd like to make a change though.

Viewing all articles
Browse latest Browse all 7017

Latest Images

Trending Articles



Latest Images