ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Is it compulsory for a mesh file(urdf) in STL format?? Can i add a solid works file as a mesh file?

asked 2015-11-04 12:34:24 -0500

npa gravatar image

My design which i got from another source is in stl format and contains lot of unwanted objects like holes,screws,extrusions it.So i need to delete all those unwanted parts from my mesh file.(to improve processing power) So is it ok to use a solidworks file (i am planning to design it from scratch) or modify the stl file using any stl editor?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-04 14:44:35 -0500

Airuno2L gravatar image

updated 2015-11-04 14:51:51 -0500

URDF only works with mesh files. You can use STL or DAE, that is the only two that are supported that I am aware of.

I (and probably most people) prefer DAE because you can output the color of your model from your mesh software. STL doesn't support color so you have to add that information in the URDF and even then I don't think you can have multiple colors on one object.

If you are making real/important changes to the part I would suggest modeling it in SolidWorks and exporting. If you are just simplifying the part by removing unimportant features, I would recommend working with the existing STL.

I prefer using Blender for modifying meshes. Blender is free, very extensive, cross platform, portable, and awesome - there can be a bit of a learning curve but there are tons of video tutorials available. The main feature I use for what you're talking about is the decimate modifier. I just leave all those unimportant features and decimate the whole model - its like lowering the resolution of it.

You can also use Blender to paint/color your parts and export DAE so you don't have to add color information in your URDF.


One last thing, Solidworks exports STL, but like I said that doesn't carry color along with it. Solidworks does NOT export .dae. Just looking at Blender and Solidworks I notice that Solidworks can export .wrl and Blender can import .wrl. And .wrl does support color. So, you might/should be able to export .wrl from Solidworks, import it into Blender, then export the .dae from Blender ... that way you would have the color that you set in Solidworks.

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-11-04 12:34:24 -0500

Seen: 570 times

Last updated: Nov 04 '15