ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

textures in a stl file

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

Alvaro Salcedo gravatar image

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!

edit retag flag offensive close merge delete

Comments

The answers.gazebosim.org/questions 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
3

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

Question Tools

1 follower

Stats

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

Seen: 911 times

Last updated: Oct 20 '15