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

launch a .stl file

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

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
2

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

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.

edit flag offensive delete link more

Comments

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/21946... because maybe you can help me. Thanks a lot again

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

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

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

Stats

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

Seen: 1,917 times

Last updated: Oct 19 '15