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

import stl into moveit

asked 2013-04-18 12:01:52 -0500

kalectro gravatar image

All,

I would like to add a custom scene to moveit using my own stl file. Is there any documentation on how that works? The only information I found is this. It works as described but when I try to import a stl file I exported from Solidworks, I receive an error saying: unable to import scene

Assimp reports no scene in file:///home/asdf.stl

I looked at the box.stl and it says it was exported using blender but I would like to use Solidworks :(

Any help is appreciated.

Kai

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-10 00:32:43 -0500

mortenpj gravatar image

I had the same problem when I saved my CAD model as a .stl file in binary format. It worked for me to save my CAD model as a .stl file in aschii format in SolidWorks.

edit flag offensive delete link more

Comments

2

@mortenpj: binary STLs work fine, but SolidWorks places the string 'solid' in the STL header (first 80 bytes). Assimp doesn't like this, as it assumes headers with 'solid' in them are followed by ascii STLs. Replace the 'solid' string with 'dilos' for instance and everything should work.

gvdhoorn gravatar image gvdhoorn  ( 2014-02-10 05:29:00 -0500 )edit

Question Tools

Stats

Asked: 2013-04-18 12:01:52 -0500

Seen: 2,634 times

Last updated: Feb 10 '14