Ask Your Question

textures in a stl file

asked 2015-10-20 04:55:35 -0500

Alvaro Salcedo gravatar image


I would like to ask a question. I have a .stl file wich contains a chessboard. I have a .xacro wich is referencing a stl file and I have a .launch wich run .xacro

My problem is that when I see on Gazebo the chessboard this is whole in white... so it has not textures... (black and white squares). How can I do that .stl keeps the textures?

Thanks a lot!

edit retag flag offensive close merge delete


The site might be a better place for questions regarding Gazebo.

gvdhoorn gravatar image gvdhoorn  ( 2015-10-20 05:38:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-20 05:37:40 -0500

gvdhoorn gravatar image

updated 2015-10-20 05:44:12 -0500

How can I do that .stl keeps the textures?

You can't. STL does not support colours or texturing.

Collada (.dae) is the only format supported by both ROS (RViz) and Gazebo which does allow you to add colour information and / or textures. I'm not sure about OGRE .mesh.

An alternative might be to use Gazebo Material scripts (like in this question) which specify a texture to be applied (info on OGRE materials here). Note that this will not work in RViz.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-10-20 04:55:35 -0500

Seen: 394 times

Last updated: Oct 20 '15