How to correctly use different texture for floor polygons (#419)

Posted by @cwrx777:

Hi,
is there any rule on how to use different texture floor polygons?
I used the texture from here.
Some polygons can show the desired texture, but mostly only show the default texture (blue_linoleum).

I usually build map using the following command

colcon build --packages-select <map_package_name> \
--cmake-force-configure --cmake-clean-first --cmake-args -DNO_DOWNLOAD_MODELS=True

and I can see the texture files are copied to the install folder of the map package.

Chosen answer

Answer chosen by @cwrx777 at 2024-02-01T02:44:59Z.
Answered by @luca-della-vedova:

I see that the screenshot is in gz_classic, can you try using gz instead and see if that helps? This is what it looks like in gz

Gazebo classic will be EOL soon and we don’t plan to keep maintaining it for long

Posted by @luca-della-vedova:

Hi!

Not really, some of the demos do use different textures for the floor (for example if you look at the hotel world).
You just need to change the property on the floor polygon.
Does there seem to be a pattern to where the new texture is used and where it is not?

Posted by @cwrx777:

Hi @luca-della-vedova,

Please see below for hotel L1 :

Posted by @luca-della-vedova:

I see that the screenshot is in gz_classic, can you try using gz instead and see if that helps? This is what it looks like in gz

Gazebo classic will be EOL soon and we don’t plan to keep maintaining it for long


This is the chosen answer.