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
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
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
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
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