Robotics StackExchange | Archived questions

textures in a stl file

Hello:

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!

Asked by Alvaro Salcedo on 2015-10-20 04:55:35 UTC

Comments

The answers.gazebosim.org/questions site might be a better place for questions regarding Gazebo.

Asked by gvdhoorn on 2015-10-20 05:38:32 UTC

Answers

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.

Asked by gvdhoorn on 2015-10-20 05:37:40 UTC

Comments