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

launch a .stl file

asked 2015-10-19 06:13:17 -0600

Alvaro Salcedo gravatar image

Hi Ros Users:

I have a .stl file and I just would like to launch in a gazebo empty world with a .launch. How con I do that?

Thanks a lot !

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-10-19 08:47:15 -0600

You can either make your stl part of a SDF (Gazebo) model or of a URDF model. The first method is fully independent of ROS and described here on

An example for spawning a stl via a URDF model is here. The urdf folder contains the model (which is referencing a stl file in the Media folder) and the launch folder contains launch files for spawning the model into a Gazebo scene.

edit flag offensive delete link more


Thanks a lot @Stefan Kohlbrecher ! I have fixed it! But now I have another problem... please have a look at because maybe you can help me. Thanks a lot again

Alvaro Salcedo gravatar image Alvaro Salcedo  ( 2015-10-20 04:57:10 -0600 )edit

answered 2015-10-19 07:59:09 -0600

Kishore Kumar gravatar image

Open the file in SolidWorks and export to URDF using this plug-in. This URDF file can be read in Gazebo. You can find the details and procedure in following links Solidworks teacher blog, Design for gazebo, Willow Garage.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-10-19 06:13:17 -0600

Seen: 1,713 times

Last updated: Oct 19 '15