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

Creating stl mesh file with textures

asked 2015-02-24 06:27:15 -0600

End-Effector gravatar image

Hello,

I'm trying to make a simple cube to set over a pioneer. The cube has some Aruco Tags (textures). I did the cube in sketchup and them exported it to stl. Then I saved it with meshlab and put it in my robot.

Problem--> the cube doesn't have the textures (Arucos tags) I put in sketchup. How do you export the file with the textures included anyone knows?

edit retag flag offensive close merge delete

Comments

update- tried making a .dae with sketchup. Fails to load in meshlab, says it doesn't have the textures. Collada files are really complicated. Putting a texture on a robot is really hard...

End-Effector gravatar image End-Effector  ( 2015-02-24 09:11:37 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-02-24 06:54:37 -0600

Adolfo Rodriguez T gravatar image

"STL files describe only the surface geometry of a three-dimensional object without any representation of color, texture or other common CAD model attributes" (source). If you'd like to represent textures, you'll need to use a different file format, like Collada, which is well supported by the ROS tools.

edit flag offensive delete link more

Comments

So I used the wrong program. Maybe I can add up the texture with Meshlab. What program do you recommend to generate the mesh with the textures?

End-Effector gravatar image End-Effector  ( 2015-02-24 07:52:41 -0600 )edit

Meshlab has tools for projecting images to geometry (online tutorial, untested by myself), and can export to Collada. There are many other open source (Blender) and proprietary (3DS max, Maya, Rhino, ...) applications that can do the job.

Adolfo Rodriguez T gravatar image Adolfo Rodriguez T  ( 2015-02-24 10:07:34 -0600 )edit

I tried with blender. Blender can't export to .dae. At least I don't see that option.

End-Effector gravatar image End-Effector  ( 2015-02-24 11:40:08 -0600 )edit
1

Made it man!

Thx so much anyway.

http://answers.ros.org/question/20370...

End-Effector gravatar image End-Effector  ( 2015-02-25 09:21:24 -0600 )edit
2

answered 2015-02-24 06:52:44 -0600

gvdhoorn gravatar image

updated 2015-02-24 06:53:12 -0600

STL doesn't support textures (well, 'official' STL doesn't), it only encodes surface geometry, no colour, no textures.

Colours can be set (at least in RViz, and on the entire mesh) using the color element in a URDF.

If you really want to texture your meshes, you'll have to use another format (RViz also supports .dae (Collada) and Ogre .mesh).

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-24 06:27:15 -0600

Seen: 3,419 times

Last updated: Feb 24 '15