0
$\begingroup$

Rosanswers logo

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 !


Originally posted by Alvaro Salcedo on ROS Answers with karma: 149 on 2015-10-19

Post score: 1

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

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 gazebosim.org.

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.


Originally posted by Stefan Kohlbrecher with karma: 24361 on 2015-10-19

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by Alvaro Salcedo on 2015-10-20:
Thanks a lot @Stefan Kohlbrecher ! I have fixed it! But now I have another problem... please have a look at http://answers.ros.org/question/219467/textures-in-a-stl-file/ because maybe you can help me. Thanks a lot again

$\endgroup$
0
$\begingroup$

Rosanswers logo

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.


Originally posted by Kishore Kumar with karma: 173 on 2015-10-19

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.