Robotics StackExchange | Archived questions

heightmap textures not loading

Hello

My goal is to start a simulation in Gazebo using ROS2. The simulation should implement a heightmap and textures as the ground. I can make the heightmap load correctly. However, in the GUI, only the default textures pattern is shown. Instead of the intended texture, only black and green/yellow stripes are visible.

I use this world file.

I reference the heightmap and textures with "model://" as the media path, for some reason, does not work. I have set the paths in the package.xml of the ROS package.

As far as I understand, this folder is referenced for models while Gazebo is running. And this seems to be correct, as the heightmap png files are loaded correctly. At least I can see displacements in the GUI.

I have tried making the texture images load correctly for days and found no solution. Also, I do not understand this example world file. The same texture is included multiple times and then blended for no apparent reason.

What am I missing?

Asked by simonsure on 2022-03-15 12:46:49 UTC

Comments

I did not found the issue. However, reinstalling ROS and Gazebo on a new virtual machine solved all problems. On this machine, I am still using the same code.

Asked by simonsure on 2022-03-16 12:06:54 UTC

Answers